pub fn parse_request(bytes: &[u8]) -> Result<HttpRequest, ParseError>Expand description
Parse a complete HTTP/1.1 request from bytes.
Returns ParseError::Incomplete if bytes does not yet contain the full
header block (\r\n\r\n) plus a Content-Length-worth of body — the caller
reads more and calls again.