pub async fn read_response<S: AsyncReadExt + Unpin>(
stream: &mut S,
is_head: bool,
max_response_bytes: usize,
) -> Result<Response>Expand description
Parse a full HTTP response from stream. is_head suppresses body reading.
ยงErrors
Propagates I/O errors and returns InvalidData on malformed responses.