Skip to main content

parse_response

Function parse_response 

Source
pub fn parse_response<'b, 'h>(
    buf: &'b [u8],
    hs: &'h mut [Header<'b>],
    lim: &Limits,
    request_method: &[u8],
) -> Result<Status<Response<'b, 'h>>, Error>
Expand description

Parses a response head. request_method decides the framing of HEAD and CONNECT replies. A 1xx head is returned like any other; read the next head after it.