feat(body): implement HttpBody for Request and Response
When the body type of a `Request` or `Response` implements `HttpBody`, the `Request` or `Response` itself now implements `HttpBody`. This allows writing things like `hyper::body::aggregate(req)` instead of `hyper::body::aggregate(req.into_body())`. Closes #2067
This commit is contained in:
@@ -25,7 +25,7 @@ futures-core = { version = "0.3", default-features = false }
|
||||
futures-channel = "0.3"
|
||||
futures-util = { version = "0.3", default-features = false }
|
||||
http = "0.2"
|
||||
http-body = "0.3"
|
||||
http-body = "0.3.1"
|
||||
httparse = "1.0"
|
||||
h2 = "0.2.1"
|
||||
itoa = "0.4.1"
|
||||
|
||||
Reference in New Issue
Block a user