We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d390ad commit 97afc4aCopy full SHA for 97afc4a
1 file changed
http-body-util/src/lib.rs
@@ -129,6 +129,14 @@ pub trait BodyExt: http_body::Body {
129
combinators::WithTrailers::new(self, trailers)
130
}
131
132
+ /// Turn this body into [`BodyStream`].
133
+ fn into_stream(self) -> BodyStream<Self>
134
+ where
135
+ Self: Sized,
136
+ {
137
+ BodyStream::new(self)
138
+ }
139
+
140
/// Turn this body into [`BodyDataStream`].
141
fn into_data_stream(self) -> BodyDataStream<Self>
142
where
0 commit comments