Skip to main content

read_http_response

Function read_http_response 

Source
pub fn read_http_response<R: Read>(
    reader: &mut R,
) -> Result<Response, FetchError>
Expand description

Reads an HTTP/1.1 response from a synchronous byte stream, enforcing RFC 7230 framing. Terminates immediately upon reading Content-Length bytes or the terminal chunk 0\r\n\r\n, preventing hangs on persistent keep-alive connections.