Function axum::body::boxed

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

Convert a http_body::Body into a BoxBody.