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.