-
Notifications
You must be signed in to change notification settings - Fork 0
/
constant.go
27 lines (25 loc) · 1.15 KB
/
constant.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
package kid
// Http header
const (
HeaderRequestId = "X-Request-ID"
HeaderContentDisposition = "Content-Disposition"
HeaderContentType = "Content-Type"
HeaderLocation = "Location"
HeaderAuthorization = "Authorization"
HeaderWWWAuthenticate = "WWW-Authenticate"
HeaderOrigin = "Origin"
HeaderVary = "Vary"
HeaderAccessControlAllowCredentials = "Access-Control-Allow-Credentials"
HeaderAccessControlAllowHeaders = "Access-Control-Allow-Headers"
HeaderAccessControlAllowMethods = "Access-Control-Allow-Methods"
HeaderAccessControlAllowOrigin = "Access-Control-Allow-Origin"
HeaderAccessControlExposeHeaders = "Access-Control-Expose-Headers"
HeaderAccessControlMaxAge = "Access-Control-Max-Age"
HeaderAccessControlRequestHeaders = "Access-Control-Request-Headers"
HeaderAccessControlRequestMethod = "Access-Control-Request-Method"
)
const (
CtxRequestId = "Ctx-Request-ID"
CtxBasicAuthUsername = "Ctx-Basic-Auth-Username"
CtxBasicAuthPassword = "Ctx-Basic-Auth-Password"
)