Skip to main content

response_bytes

Function response_bytes 

Source
pub async fn response_bytes(
    response: Response<impl Body<Data = Bytes, Error = ErrorCode>>,
) -> Result<Bytes, Error>
Expand description

Collect the remaining body in memory, including checking its final result. For large bodies, stream frames from response.into_body() instead.