2 unstable releases
0.1.0 | Mar 22, 2024 |
---|---|
0.0.1 | Mar 10, 2024 |
#347 in HTTP server
303 downloads per month
Used in 2 crates
(via min_http11_parser)
41KB
913 lines
min_http11_core
pub enum Version {
Http11,
Unsupported(..),
}
pub enum Method {
Get,
Head,
Post,
Put,
Delete,
Options,
Patch,
Other(..),
}
pub enum HeaderName {
ContentLength,
Host,
IfMatch,
IfNoneMatch,
...
Other(..),
Unknown(..),
}
pub struct KnownHeaders<'a> {
pub content_length: Option<&'a [u8]>,
pub host: Option<&'a [u8]>,
pub if_match: Option<&'a [u8]>,
pub if_none_match: Option<&'a [u8]>,
...
}
Dependencies
~0.4–0.9MB
~20K SLoC