Clean up RequestParts API (#167)

In http-body 0.4.3 `BoxBody` implements `Default`. This allows us to
clean up the API of `RequestParts` quite a bit.
This commit is contained in:
David Pedersen
2021-08-08 19:48:30 +02:00
committed by GitHub
parent bc27b09f5c
commit 6b218c7150
8 changed files with 112 additions and 38 deletions
+1 -1
View File
@@ -605,7 +605,7 @@ async fn wrong_method_service() {
}
/// Run a `tower::Service` in the background and get a URI for it.
async fn run_in_background<S, ResBody>(svc: S) -> SocketAddr
pub(crate) async fn run_in_background<S, ResBody>(svc: S) -> SocketAddr
where
S: Service<Request<Body>, Response = Response<ResBody>> + Clone + Send + 'static,
ResBody: http_body::Body + Send + 'static,