pub fn extract_headers(
stream: &mut TcpStream,
start_header: &mut String,
partial_body_bytes: &mut Vec<u8>,
max_size: usize,
) -> Result<Headers, RequestHeaderError>
Expand description
It will try to read headers from the tcp stream.
Returns type RequestHeaderError
if failed to extract headers.