Skip to main content

parse_request_head

Function parse_request_head 

Source
pub fn parse_request_head(
    buffer: &[u8],
) -> Result<(Request, BodyMode, usize), ParseError>
Expand description

Parse a request head (start-line + headers) from the provided buffer.

Returns the constructed Request, the inferred BodyMode, and the number of bytes consumed from the buffer.