Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(body): implement HttpBody for Request and Response #2077

Merged
merged 1 commit into from
Dec 13, 2019

Conversation

seanmonstar
Copy link
Member

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

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
@seanmonstar seanmonstar force-pushed the http-body-for-req-and-res branch from a3be18f to d19b22b Compare December 13, 2019 18:30
@seanmonstar seanmonstar merged commit 4b6099c into master Dec 13, 2019
@seanmonstar seanmonstar deleted the http-body-for-req-and-res branch December 13, 2019 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider implementing HttpBody for Request and Response
1 participant