1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/// The header name for content encoding.
pub const CONTENT_ENCODING: &str = "content-encoding";
/// An empty string.
pub const EMPTY_STR: &str = "";
/// The content encoding type for gzip.
pub const CONTENT_ENCODING_GZIP: &str = "gzip";
/// The content encoding type for deflate.
pub const CONTENT_ENCODING_DEFLATE: &str = "deflate";
/// The content encoding type for brotli.
pub const CONTENT_ENCODING_BROTLI: &str = "br";
/// The default brotli compression quality.
pub const BROTLI_DEFAULT_QUALITY: u32 = 5;
/// The default brotli sliding window size, in bits.
pub const BROTLI_DEFAULT_WINDOW_BITS: u32 = 22;
/// The comma that separates two codings of an `Accept-Encoding` field value.
pub const ACCEPT_ENCODING_SEPARATOR: &str = ",";
/// The semicolon that introduces a parameter of a coding.
pub const PARAMETER_SEPARATOR: &str = ";";
/// The equal sign that joins a parameter name to its value.
pub const PARAMETER_ASSIGN: &str = "=";
/// The wildcard coding that stands for every coding a field does not name.
pub const ACCEPT_ENCODING_WILDCARD: &str = "*";
/// The parameter name that carries the relative quality of a coding.
pub const ACCEPT_ENCODING_QUALITY: &str = "q";
/// The quality a coding counts as when the field names no `q` parameter for it.
pub const DEFAULT_QUALITY: f32 = 1.0;