typed_headers/impls/content_coding.rs
1token! {
2 /// A content coding, used in the `Accept-Encoding` and `Content-Encoding` headers.
3 ContentCoding => {
4 /// The Brotli coding, as specified in [RFC7932].
5 ///
6 /// [RFC7932]: https://tools.ietf.org/html/rfc7932
7 BROTLI => "br" => [],
8 /// The Gzip coding, as specified in [RFC7230].
9 ///
10 /// [RFC7230]: https://tools.ietf.org/html/rfc7230#section-4.2.3
11 GZIP => "gzip" => ["x-gzip"],
12 /// The Deflate coding, as specified in [RFC7230].
13 ///
14 /// [RFC7230]: https://tools.ietf.org/html/rfc7230#section-4.2.2
15 DEFLATE => "deflate" => [],
16 /// The Compress coding, as specified in [RFC7230].
17 ///
18 /// [RFC7230]: https://tools.ietf.org/html/rfc7230#section-4.2.1
19 COMPRESS => "compress" => ["x-compress"],
20 /// The identity coding.
21 IDENTITY => "identity" => [],
22 /// A wildcard, used in the `Accept-Encoding` header to indicate that all codings are acceptable.
23 STAR => "*" => [],
24 }
25}