#http-parser

min_http11_parser

Minimum HTTP/1.1 request parser

10 releases

0.2.7 Sep 22, 2024
0.2.6 Aug 9, 2024
0.2.5 Jul 13, 2024
0.2.4 Jun 2, 2024
0.0.1 Mar 10, 2024

#518 in HTTP server

Download history 11/week @ 2024-07-02 133/week @ 2024-07-09 13/week @ 2024-07-16 51/week @ 2024-07-23 36/week @ 2024-07-30 107/week @ 2024-08-06 12/week @ 2024-08-13 19/week @ 2024-09-10 157/week @ 2024-09-17 46/week @ 2024-09-24 16/week @ 2024-10-01 3/week @ 2024-10-08

241 downloads per month
Used in zip_static_handler

MIT license

63KB
1.5K SLoC

min_http11_parser  LICENSE crates.io Version Documentation

let mut reader = BufReader::new(reader);
let mut buffer = vec![];
let (method, path, known_headers, _other_headers) = Parser::default()
    .parse_request_line_and_headers( & mut reader, & mut buffer)
    .await?;

Dependencies

~2.8–9MB
~75K SLoC