pub async fn response(
reader: impl AsyncRead + Unpin,
max_len: usize,
timeout: Duration
) -> impl Future<Output = Result<Response<Bytes>, Error>>
Expand description
Parses a HTTP Response
in plain bytes.
Errors
Passes errors from http::response::Builder::body
and internal checks.
See Error
for variants.
Will also return errors similar to request
.