typed-headers 0.1.0

Typed HTTP header serialization and deserialization.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
token! {
    /// An authorization scheme.
    AuthScheme => {
        /// Basic authentication, as defined in [RFC7617].
        ///
        /// [RFC7617]: https://tools.ietf.org/html/rfc7617
        BASIC => "Basic" => [],
        /// Bearer authentication, as defined in [RFC6750].
        ///
        /// [RFC6750]: https://tools.ietf.org/html/rfc6750
        BEARER => "Bearer" => [],
    }
}