Skip to main content

response_error_from

Function response_error_from 

Source
pub async fn response_error_from(resp: Response) -> Error
Expand description

Build an Error::Response from a reqwest::Response. Reads up to RESPONSE_BODY_CAP bytes of the body so a giant error page can’t blow up memory.