-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconst.go
76 lines (71 loc) · 2.35 KB
/
const.go
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
package fresh
// Fresh main constants
const (
banner = `
_____ _
| ___| __ ___ ___| |__
| |_ | '__/ _ \/ __| '_ \
| _|| | | __/\__ \ | | |
|_| |_| \___||___/_| |_|
--------------- (v.0.1) ---
`
welcome = "Fresh is working..."
)
// MIME types
const (
MIMEAppJSON = "application/json" + ";" + UTF8
MIMEAppJS = "application/javascript" + ";" + UTF8
MIMEAppXML = "application/xml" + ";" + UTF8
MIMEUrlencoded = "application/x-www-form-urlencoded"
MIMEMultipart = "multipart/form-data"
MIMETextHTML = "text/html" + ";" + UTF8
MIMETextXML = "text/xml" + ";" + UTF8
MIMEText = "text/plain" + ";" + UTF8
MIMEGzip = "gzip"
)
// Access
const (
AccessControlMaxAge = "Access-Control-Max-Age"
AccessControlAllowOrigin = "Access-Control-Allow-Origin"
AccessControlAllowMethods = "Access-Control-Allow-Methods"
AccessControlAllows = "Access-Control-Allow-s"
AccessControlRequestMethod = "Access-Control-Request-Method"
AccessControlExposes = "Access-Control-Expose-s"
AccessControlRequests = "Access-Control-Request-s"
AccessControlAllowCredentials = "Access-Control-Allow-Credentials"
AccessControlAllowHeaders = "Access-Control-Allow-Headers"
)
// Request
const (
Accept = "Accept"
AcceptEncoding = "Accept-Encoding"
Allow = "Allow"
Authorization = "Authorization"
ContentDisposition = "Content-Disposition"
ContentEncoding = "Content-Encoding"
ContentLength = "Content-Length"
ContentType = "Content-Type"
Cookie = "Cookie"
SetCookie = "Set-Cookie"
IfModifiedSince = "If-Modified-Since"
LastModified = "Last-Modified"
Location = "Location"
Upgrade = "Upgrade"
Vary = "Vary"
WWWAuthenticate = "WWW-Authenticate"
XForwardedFor = "X-Forwarded-For"
XForwardedProto = "X-Forwarded-Proto"
XForwardedProtocol = "X-Forwarded-Protocol"
XForwardedSsl = "X-Forwarded-Ssl"
XUrlScheme = "X-Url-Scheme"
XHTTPMethodOverride = "X-HTTP-Method-Override"
XRealIP = "X-Real-IP"
XRequestID = "X-Request-ID"
Server = "Server"
Origin = "Origin"
)
// Encoding chartset
const (
UTF8 = "charset=UTF-8"
ISO88591 = "chartset=ISO-8859-1"
)