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 + Sync + Send>>,
Expand description

Convert a http_body::Body into a BoxBody.