diff --git a/http-body-util/src/lib.rs b/http-body-util/src/lib.rs index dee852c..c323c93 100644 --- a/http-body-util/src/lib.rs +++ b/http-body-util/src/lib.rs @@ -129,6 +129,14 @@ pub trait BodyExt: http_body::Body { combinators::WithTrailers::new(self, trailers) } + /// Turn this body into [`BodyStream`]. + fn into_stream(self) -> BodyStream + where + Self: Sized, + { + BodyStream::new(self) + } + /// Turn this body into [`BodyDataStream`]. fn into_data_stream(self) -> BodyDataStream where