Skip to main content

to_boxed

Function to_boxed 

Source
pub fn to_boxed<B>(body: B) -> BoxBody
where B: Into<Bytes>,
Expand description

Convert bytes or similar types into a BoxBody.