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 cc87586 commit 740614bCopy full SHA for 740614b
1 file changed
http-body-util/src/lib.rs
@@ -136,6 +136,14 @@ pub trait BodyExt: http_body::Body {
136
combinators::WithTrailers::new(self, trailers)
137
}
138
139
+ /// Turn this body into [`BodyStream`].
140
+ fn into_stream(self) -> BodyStream<Self>
141
+ where
142
+ Self: Sized,
143
+ {
144
+ BodyStream::new(self)
145
+ }
146
+
147
/// Turn this body into [`BodyDataStream`].
148
fn into_data_stream(self) -> BodyDataStream<Self>
149
where
0 commit comments