1pub use http;
2
3pub mod body_framing;
7pub mod body_parser;
8pub mod chunked_body_parser;
9pub mod content_length_body_parser;
10pub mod head_parser;
11pub mod head_renderer;
12pub mod request_head_parser;
13pub mod request_head_renderer;
14pub mod response_head_parser;
15pub mod response_head_renderer;
16
17pub const SP: u8 = b' ';
21pub const HTTP_VERSION_10: &[u8] = b"HTTP/1.0";
22pub const HTTP_VERSION_11: &[u8] = b"HTTP/1.1";
23pub const HTTP_VERSION_20: &[u8] = b"HTTP/2.0";
24pub const HTTP_VERSION_2: &[u8] = b"HTTP/2";
25pub const HTTP_VERSION_30: &[u8] = b"HTTP/3.0";
26pub const HTTP_VERSION_3: &[u8] = b"HTTP/3";
27pub const COLON: u8 = b':';
28pub const CR: u8 = b'\r';
29pub const LF: u8 = b'\n';
30pub const CRLF: &[u8] = b"\r\n";
31
32pub type ReasonPhrase = Option<Vec<u8>>;
33
34pub const CHUNKED: &str = "chunked";