Closed nitsky closed 1 year ago
+1 on this. Very useful to integrate with Gotham that requires hyper::body::Body
in a response. In order to get that from impl http_body::Body
, a call to hyper::body::Body::wrap_stream(s: Stream)
is required. A compatibility that converts impl http_body::Body
to a T: Stream
seems very useful!
This PR adds a
BodyStream
type to create aStream
from aBody
. This is useful when you want to stream data from aBody
to code that accepts aStream
.