Skip to main content

parse_request

Function parse_request 

Source
pub fn parse_request(line: &str) -> Option<Request>
Expand description

Parse one request line. None for anything malformed (logged, then answered with ERR so the DLL’s waiter never hangs). Fields are space-split with the path as the LAST field (it may contain spaces); the URL is by construction a single token (the mod interpolates it percent-encoded).