-
Notifications
You must be signed in to change notification settings - Fork 138
Expand file tree
/
Copy pathlhttpDefine.go
More file actions
40 lines (35 loc) · 814 Bytes
/
lhttpDefine.go
File metadata and controls
40 lines (35 loc) · 814 Bytes
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
package lhttp
// CRLF is the end of text line
var CRLF = "\r\n"
var (
// HEADER_KEY_PUBLISH
HEADER_KEY_PUBLISH = "publish"
// HEADER_KEY_SUBSCRIBE
HEADER_KEY_SUBSCRIBE = "subscribe"
// HEADER_KEY_UNSUBSCRIBE
HEADER_KEY_UNSUBSCRIBE = "unsubscribe"
// HEADER_KEY_UPSTREAM
HEADER_KEY_UPSTREAM = "upstream"
// HEADER_KEY_MULTIPART
HEADER_KEY_MULTIPART = "multipart"
)
var (
//headers max num not size
headerMax = 20
subscribeMax = 40
version = "1.0"
protocolName = "LHTTP"
protocolNameWithVersion = "LHTTP/1.0"
protocolLength = 9
MaxLength = 40960
)
var (
// UPSTREAM_HTTP_METHOD_GET
UPSTREAM_HTTP_METHOD_GET = "GET"
// UPSTREAM_HTTP_METHOD_POST
UPSTREAM_HTTP_METHOD_POST = "POST"
)
var (
// ProcessorMax
ProcessorMax = 40
)