Crates.io | min_http11_core |
lib.rs | min_http11_core |
version | 0.1.4 |
source | src |
created_at | 2024-03-10 21:05:57.598641 |
updated_at | 2024-09-22 18:03:58.179342 |
description | Minimum HTTP/1.1 version, request line and headers |
homepage | |
repository | https://github.com/programingjd/min_http11 |
max_upload_size | |
id | 1168956 |
size | 42,014 |
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]>,
...
}