Skip to main content

body_as_string

Function body_as_string 

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

Collect a Response’s Body and convert the body to a string.