Skip to main content

body_as_bytes

Function body_as_bytes 

Source
pub async fn body_as_bytes<B>(response: Response<B>) -> Result<Vec<u8>, Error>
where B: Body, B::Error: Into<Error>,
Expand description

Collect a Response into a single Vec of bytes.