-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Consider implementing HttpBody for Request and Response #2067
Copy link
Copy link
Closed
Labels
A-bodyArea: body streaming.Area: body streaming.C-featureCategory: feature. This is adding a new feature.Category: feature. This is adding a new feature.E-easyEffort: easy. A task that would be a great starting point for a new contributor.Effort: easy. A task that would be a great starting point for a new contributor.
Description
In hyperium/http#107, we didn't implement Stream for http::{Request, Response} so as to not have the external dependency. However, in http-body, since we define the trait and import http, we could provide this implementation.
It'd make these slightly nicer:
while let Some(data) = req.data().await {}
let buf = hyper::body::aggregate(req);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-bodyArea: body streaming.Area: body streaming.C-featureCategory: feature. This is adding a new feature.Category: feature. This is adding a new feature.E-easyEffort: easy. A task that would be a great starting point for a new contributor.Effort: easy. A task that would be a great starting point for a new contributor.