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
/// Pre-encoded HTTP/1.1 200 OK status line.
pub const FAST_HTTP11_200_LINE: & = b"HTTP/1.1 200 OK\r\n";
/// Pre-encoded HTTP/2 200 OK status line.
pub const FAST_HTTP2_200_LINE: & = b"HTTP/2 200 OK\r\n";
/// Pre-encoded HTTP/3 200 OK status line.
pub const FAST_HTTP3_200_LINE: & = b"HTTP/3 200 OK\r\n";
/// Pre-encoded HTTP/1.1 200 OK status line and content-length field prefix.
pub const FAST_HTTP11_200_CL_PREFIX: & = b"HTTP/1.1 200 OK\r\ncontent-length:";
/// Pre-encoded HTTP/2 200 OK status line and content-length field prefix.
pub const FAST_HTTP2_200_CL_PREFIX: & = b"HTTP/2 200 OK\r\ncontent-length:";
/// Pre-encoded HTTP/3 200 OK status line and content-length field prefix.
pub const FAST_HTTP3_200_CL_PREFIX: & = b"HTTP/3 200 OK\r\ncontent-length:";
/// Pre-encoded default keep-alive header line.
pub const FAST_CONNECTION_KEEP_ALIVE_LINE: & = b"connection:keep-alive\r\n";
/// Pre-encoded default `Content-Type` header line.
pub const FAST_DEFAULT_CONTENT_TYPE_LINE: & =
b"content-type:text/html; charset=utf-8\r\n";
/// Pre-encoded `content-length:` header prefix.
pub const FAST_CONTENT_LENGTH_PREFIX: & = b"content-length:";
/// Pre-encoded zero-length `content-length:0\r\n` header line.
pub const FAST_CONTENT_LENGTH_ZERO_LINE: & = b"content-length:0\r\n";
/// Pre-encoded default keep-alive and text/html headers terminating the fast-path head.
pub const FAST_DEFAULT_HEADERS_SUFFIX: & =
b"\r\nconnection:keep-alive\r\ncontent-type:text/html; charset=utf-8\r\n\r\n";
/// Pre-encoded content-length field prefix after a custom status line.
pub const FAST_CL_PREFIX: & = b"\r\ncontent-length:";
/// Static default `Content-Type` header value avoiding runtime `OnceLock` overhead.
pub const DEFAULT_CONTENT_TYPE_VALUE: &str = "text/html; charset=utf-8";