Skip to main content

parse_request

Function parse_request 

Source
pub fn parse_request(buf: &[u8]) -> Result<Option<Request>, RequestError>
Expand description

Parse one request head from the start of buf. Ok(None) means the head is not complete yet; the caller bounds how much it reads.