-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Update Payload
to be a trait alias of http_body::Body
#1908
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
Conversation
Signed-off-by: Lucio Franco <[email protected]>
Looks good. I notice using the |
@seanmonstar yeah, I was thinking the same, will update http body then this PR. |
With hyperium/http-body#14 merged, this can just use |
@seanmonstar ok I applied the changes, and I think this is ready to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
This changes Payload to be a trait alias of http_body::Body and seals Payload so that the only way to implement it is via http_body::Body.
content_length
was also removed in favor of the more flexible size hint api in http body.If we're all happy with this I can cut a release of http body and push the cargo.toml change.
cc @seanmonstar @carllerche
Signed-off-by: Lucio Franco [email protected]