pub fn parse_request(buf: &[u8]) -> Result<Option<Request>, RequestError>
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.
buf
Ok(None)