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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
use *;
/// Wire bytes for the GET request method.
pub const WIRE_METHOD_GET: & = GET.as_bytes;
/// Wire bytes for the POST request method.
pub const WIRE_METHOD_POST: & = POST.as_bytes;
/// Wire bytes for the PUT request method.
pub const WIRE_METHOD_PUT: & = PUT.as_bytes;
/// Wire bytes for the DELETE request method.
pub const WIRE_METHOD_DELETE: & = DELETE.as_bytes;
/// Wire bytes for the HEAD request method.
pub const WIRE_METHOD_HEAD: & = HEAD.as_bytes;
/// Wire bytes for the OPTIONS request method.
pub const WIRE_METHOD_OPTIONS: & = OPTIONS.as_bytes;
/// Wire bytes for the PATCH request method.
pub const WIRE_METHOD_PATCH: & = PATCH.as_bytes;
/// Wire bytes for the CONNECT request method.
pub const WIRE_METHOD_CONNECT: & = CONNECT.as_bytes;
/// Wire bytes for the TRACE request method.
pub const WIRE_METHOD_TRACE: & = TRACE.as_bytes;
/// Wire bytes for the HTTP version 1.1.
pub const WIRE_VERSION_1_1: & = HTTP_VERSION_1_1.as_bytes;
/// Wire bytes for the HTTP version 1.0.
pub const WIRE_VERSION_1_0: & = HTTP_VERSION_1_0.as_bytes;
/// The horizontal tab allowed within a field value.
pub const HTTP_HEADER_TAB: u8 = b'\t';
/// The quote delimiting an entity-tag opaque value.
pub const ENTITY_TAG_QUOTE: u8 = b'"';
/// The ASCII delete control byte.
pub const HTTP_HEADER_DELETE: u8 = 0x7f;
/// The wildcard matching an existing representation.
pub const ENTITY_TAG_WILDCARD: & = b"*";
/// The separator between entity-tags in an HTTP list.
pub const ENTITY_TAG_SEPARATOR: u8 = b',';
/// The line feed terminating a header line.
pub const HTTP_HEADER_LINE_FEED: char = '\n';
/// The case-sensitive prefix marking a weak entity-tag.
pub const ENTITY_TAG_WEAK_PREFIX: & = b"W/";
/// The whitespace and empty list members ignored before an entity-tag.
pub const ENTITY_TAG_LIST_PADDING: & = b" \t,";
/// The first byte outside the ASCII control range.
pub const HTTP_HEADER_CONTROL_LIMIT: u8 = 0x20;
/// The request version that requires a Host field.
pub const HTTP_HOST_REQUIRED_VERSION: RequestVersion = Http1_1;
/// The carriage return preceding a line feed.
pub const HTTP_HEADER_CARRIAGE_RETURN: char = '\r';
/// The punctuation allowed within an HTTP field name.
pub const HTTP_HEADER_TOKEN_PUNCTUATION: & = b"!#$%&'*+-.^_`|~";
/// The request transfer coding field.
pub const HTTP_HEADER_TRANSFER_ENCODING: &str = "transfer-encoding";
/// The field announcing names that might appear as trailers.
pub const HTTP_HEADER_TRAILER: &str = "trailer";
/// The whitespace allowed around an entity-tag list member.
pub const ENTITY_TAG_OPTIONAL_WHITESPACE: & = b" \t";
/// The only whitespace allowed around a field value.
pub const HTTP_HEADER_OPTIONAL_WHITESPACE: = ;
/// Maximum header name length lowercased on the stack without heap allocation.
pub const STACK_HEADER_KEY_LIMIT: usize = B_64;
/// Additional byte budget beyond `max_path_size` for the HTTP request line framing.
pub const HTTP_REQUEST_LINE_OVERHEAD: usize = 1024;
/// Additional byte budget beyond key and value limits for one HTTP header line.
pub const HTTP_HEADER_LINE_OVERHEAD: usize = 1024;
/// Maximum chunk size pre-allocated per incremental body read.
pub const HTTP_BODY_READ_CHUNK_SIZE: usize = 64 * 1024;
/// Maximum number of query parameters accepted per request unless limits are disabled.
pub const HTTP_MAX_QUERY_PARAM_COUNT: usize = 1024;
/// Compile-time lookup table of valid RFC 9110 HTTP header token bytes.
pub const HTTP_HEADER_TOKEN_TABLE: = ;
/// Compile-time lookup table of bytes allowed inside an HTTP header field value.
pub const HTTP_HEADER_VALUE_VALID_TABLE: = ;
/// Broadcast `0x01` byte pattern used for 8-byte SWAR zero-byte detection.
pub const SWAR_LO_ONES: u64 = 0x0101_0101_0101_0101;
/// Broadcast `0x80` byte pattern used for 8-byte SWAR high-bit masks.
pub const SWAR_HI_BITS: u64 = 0x8080_8080_8080_8080;
/// Broadcast `0x20` byte pattern used for 8-byte SWAR printable-ASCII lower-bound checks.
pub const SWAR_SPACES: u64 = 0x2020_2020_2020_2020;