http_constant/constant/
common.rs1pub static SPACE: &str = " ";
6
7pub static SPACE_U8: u8 = SPACE.as_bytes()[0];
12
13pub static TAB: &str = "\t";
18
19pub static TAB_U8: u8 = TAB.as_bytes()[0];
24
25pub static BR: &str = "\n";
30
31pub static BR_BYTES: &[u8] = BR.as_bytes();
33
34pub static COLON_SPACE: &str = ": ";
39
40pub static COLON_SPACE_BYTES: &[u8] = COLON_SPACE.as_bytes();
45
46pub static COLON_SPACE_SYMBOL: &str = ":";
51
52pub static QUERY_SYMBOL: &str = "?";
54
55pub static HASH_SYMBOL: &str = "#";
57
58pub static EMPTY_STR: &str = "";
60
61pub static DEFAULT_HOST: &str = "0.0.0.0";
63
64pub static DEFAULT_WEB_PORT: usize = 80;
66
67pub static HTTP_BR: &str = "\r\n";
69
70pub static HTTP_BR_BYTES: &[u8] = HTTP_BR.as_bytes();
72
73pub static HTTP_DOUBLE_BR: &str = "\r\n\r\n";
75
76pub static HTTP_DOUBLE_BR_BYTES: &[u8] = HTTP_DOUBLE_BR.as_bytes();
78
79pub static DEFAULT_HTTP_PATH: &str = "/";
81
82pub static DEFAULT_HTTP_PATH_BYTES: &[u8] = DEFAULT_HTTP_PATH.as_bytes();
84
85pub static AND: &str = "&";
87
88pub static AND_BYTES: &[u8] = AND.as_bytes();
90
91pub static EQUAL: &str = "=";
93
94pub static EQUAL_BYTES: &[u8] = EQUAL.as_bytes();
96
97pub static ZERO_STR: &str = "0";
99
100pub static ZERO_STR_BYTES: &[u8] = ZERO_STR.as_bytes();
102
103pub static DEFAULT_BUFFER_SIZE: usize = 4096;
105
106pub static DEFAULT_MAX_REDIRECT_TIMES: usize = 8;
108
109pub const DEFAULT_TIMEOUT: u64 = u64::MAX;
111
112pub const POINT: &str = ".";
114
115pub const ROOT_PATH: &str = "/";
117
118pub const SEMICOLON: &str = ";";
120
121pub const SEMICOLON_SPACE: &str = "; ";
123
124pub static OK: &str = "OK";
126
127pub static GUID: &[u8; 36] = b"258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
129
130pub static HASH_STATE: [u32; 5] = [
132 0x67452301u32,
133 0xEFCDAB89,
134 0x98BADCFE,
135 0x10325476,
136 0xC3D2E1F0,
137];
138
139pub static BASE64_CHARSET_TABLE: &[u8] =
141 b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
142
143pub static MAX_FRAME_SIZE: usize = 65535;