Function axum::body::boxed

source · []
pub fn boxed<B>(body: B) -> UnsyncBoxBody<Bytes, Error> where
    B: 'static + Body<Data = Bytes> + Send,
    <B as Body>::Error: Into<Box<dyn Error + Send + Sync + 'static, Global>>, 
Expand description

Convert a http_body::Body into a BoxBody.