Skip to main content

read_request

Function read_request 

Source
pub fn read_request(input: &mut impl BufRead) -> Result<Option<Vec<u8>>>
Expand description

EOF, a partial final request, and oversized input terminate the session. This bounds memory before allocation, including when a caller never sends a newline.