#header #version #path #http #methods

min_http11_core

Minimum HTTP/1.1 version, request line and headers

2 unstable releases

0.1.0 Mar 22, 2024
0.0.1 Mar 10, 2024

#347 in HTTP server

Download history 117/week @ 2024-03-05 43/week @ 2024-03-12 130/week @ 2024-03-19 20/week @ 2024-03-26 45/week @ 2024-04-02

303 downloads per month
Used in 2 crates (via min_http11_parser)

MIT license

41KB
913 lines

min_http11_core  LICENSE crates.io Version Documentation

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