Skip to content

Commit

Permalink
Alter name to wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Xuanwo authored Sep 4, 2024
1 parent 6d1af6a commit afb613c
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/async_impl/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,6 @@ impl Body {
}
}

/*
#[cfg(feature = "blocking")]
pub(crate) fn wrap(body: hyper::Body) -> Body {
Body {
inner: Inner::Streaming {
body: Box::pin(WrapHyper(body)),
},
}
}
*/

pub(crate) fn empty() -> Body {
Body::reusable(Bytes::new())
}
Expand All @@ -147,10 +136,10 @@ impl Body {
/// # fn main() {
/// let content = "hello,world!".to_string();
///
/// let body = Body::streaming(content);
/// let body = Body::wrap(content);
/// # }
/// ```
pub fn streaming<B>(inner: B) -> Body
pub fn wrap<B>(inner: B) -> Body
where
B: HttpBody + Send + Sync + 'static,
B::Data: Into<Bytes>,
Expand Down

0 comments on commit afb613c

Please sign in to comment.