|
1 | 1 | package headers
|
2 | 2 |
|
| 3 | +// Version is this package's version |
| 4 | +const Version = "1.0.0" |
| 5 | + |
3 | 6 | // HTTP headers
|
4 | 7 | const (
|
5 |
| - HeaderAccept = "Accept" |
6 |
| - HeaderAcceptCharset = "Accept-Charset" |
7 |
| - HeaderAcceptEncoding = "Accept-Encoding" |
8 |
| - HeaderAcceptLanguage = "Accept-Language" |
9 |
| - HeaderAuthorization = "Authorization" |
10 |
| - HeaderCacheControl = "Cache-Control" |
11 |
| - HeaderContentLength = "Content-Length" |
12 |
| - HeaderContentMD5 = "Content-MD5" |
13 |
| - HeaderContentType = "Content-Type" |
14 |
| - HeaderIfMatch = "If-Match" |
15 |
| - HeaderIfModifiedSince = "If-Modified-Since" |
16 |
| - HeaderIfNoneMatch = "If-None-Match" |
17 |
| - HeaderIfRange = "If-Range" |
18 |
| - HeaderIfUnmodifiedSince = "If-Unmodified-Since" |
19 |
| - HeaderMaxForwards = "Max-Forwards" |
20 |
| - HeaderProxyAuthorization = "Proxy-Authorization" |
21 |
| - HeaderPragma = "Pragma" |
22 |
| - HeaderRange = "Range" |
23 |
| - HeaderReferer = "Referer" |
24 |
| - HeaderUserAgent = "User-Agent" |
25 |
| - HeaderTE = "TE" |
26 |
| - HeaderVia = "Via" |
27 |
| - HeaderWarning = "Warning" |
28 |
| - HeaderCookie = "Cookie" |
29 |
| - HeaderOrigin = "Origin" |
30 |
| - HeaderAcceptDatetime = "Accept-Datetime" |
31 |
| - HeaderXRequestedWith = "X-Requested-With" |
32 |
| - HeaderAccessControlAllowOrigin = "Access-Control-Allow-Origin" |
33 |
| - HeaderAccessControlAllowMethods = "Access-Control-Allow-Methods" |
34 |
| - HeaderAccessControlAllowHeaders = "Access-Control-Allow-Headers" |
35 |
| - HeaderAccessControlAllowCredentials = "Access-Control-Allow-Credentials" |
36 |
| - HeaderAccessControlExposeHeaders = "Access-Control-Expose-Headers" |
37 |
| - HeaderAccessControlMaxAge = "Access-Control-Max-Age" |
38 |
| - HeaderAccessControlRequestMethod = "Access-Control-Request-Method" |
39 |
| - HeaderAccessControlRequestHeaders = "Access-Control-Request-Headers" |
40 |
| - HeaderAcceptPatch = "Accept-Patch" |
41 |
| - HeaderAcceptRanges = "Accept-Ranges" |
42 |
| - HeaderAllow = "Allow" |
43 |
| - HeaderContentEncoding = "Content-Encoding" |
44 |
| - HeaderContentLanguage = "Content-Language" |
45 |
| - HeaderContentLocation = "Content-Location" |
46 |
| - HeaderContentDisposition = "Content-Disposition" |
47 |
| - HeaderContentRange = "Content-Range" |
48 |
| - HeaderETag = "ETag" |
49 |
| - HeaderExpires = "Expires" |
50 |
| - HeaderLastModified = "Last-Modified" |
51 |
| - HeaderLink = "Link" |
52 |
| - HeaderLocation = "Location" |
53 |
| - HeaderP3P = "P3P" |
54 |
| - HeaderProxyAuthenticate = "Proxy-Authenticate" |
55 |
| - HeaderRefresh = "Refresh" |
56 |
| - HeaderRetryAfter = "Retry-After" |
57 |
| - HeaderServer = "Server" |
58 |
| - HeaderSetCookie = "Set-Cookie" |
59 |
| - HeaderStrictTransportSecurity = "Strict-Transport-Security" |
60 |
| - HeaderTransferEncoding = "Transfer-Encoding" |
61 |
| - HeaderUpgrade = "Upgrade" |
62 |
| - HeaderVary = "Vary" |
63 |
| - HeaderWWWAuthenticate = "WWW-Authenticate" |
| 8 | + Accept = "Accept" |
| 9 | + AcceptCharset = "Accept-Charset" |
| 10 | + AcceptEncoding = "Accept-Encoding" |
| 11 | + AcceptLanguage = "Accept-Language" |
| 12 | + Authorization = "Authorization" |
| 13 | + CacheControl = "Cache-Control" |
| 14 | + ContentLength = "Content-Length" |
| 15 | + ContentMD5 = "Content-MD5" |
| 16 | + ContentType = "Content-Type" |
| 17 | + IfMatch = "If-Match" |
| 18 | + IfModifiedSince = "If-Modified-Since" |
| 19 | + IfNoneMatch = "If-None-Match" |
| 20 | + IfRange = "If-Range" |
| 21 | + IfUnmodifiedSince = "If-Unmodified-Since" |
| 22 | + MaxForwards = "Max-Forwards" |
| 23 | + ProxyAuthorization = "Proxy-Authorization" |
| 24 | + Pragma = "Pragma" |
| 25 | + Range = "Range" |
| 26 | + Referer = "Referer" |
| 27 | + UserAgent = "User-Agent" |
| 28 | + TE = "TE" |
| 29 | + Via = "Via" |
| 30 | + Warning = "Warning" |
| 31 | + Cookie = "Cookie" |
| 32 | + Origin = "Origin" |
| 33 | + AcceptDatetime = "Accept-Datetime" |
| 34 | + XRequestedWith = "X-Requested-With" |
| 35 | + AccessControlAllowOrigin = "Access-Control-Allow-Origin" |
| 36 | + AccessControlAllowMethods = "Access-Control-Allow-Methods" |
| 37 | + AccessControlAllows = "Access-Control-Allow-s" |
| 38 | + AccessControlAllowCredentials = "Access-Control-Allow-Credentials" |
| 39 | + AccessControlExposes = "Access-Control-Expose-s" |
| 40 | + AccessControlMaxAge = "Access-Control-Max-Age" |
| 41 | + AccessControlRequestMethod = "Access-Control-Request-Method" |
| 42 | + AccessControlRequests = "Access-Control-Request-s" |
| 43 | + AcceptPatch = "Accept-Patch" |
| 44 | + AcceptRanges = "Accept-Ranges" |
| 45 | + Allow = "Allow" |
| 46 | + ContentEncoding = "Content-Encoding" |
| 47 | + ContentLanguage = "Content-Language" |
| 48 | + ContentLocation = "Content-Location" |
| 49 | + ContentDisposition = "Content-Disposition" |
| 50 | + ContentRange = "Content-Range" |
| 51 | + ETag = "ETag" |
| 52 | + Expires = "Expires" |
| 53 | + LastModified = "Last-Modified" |
| 54 | + Link = "Link" |
| 55 | + Location = "Location" |
| 56 | + P3P = "P3P" |
| 57 | + ProxyAuthenticate = "Proxy-Authenticate" |
| 58 | + Refresh = "Refresh" |
| 59 | + RetryAfter = "Retry-After" |
| 60 | + Server = "Server" |
| 61 | + SetCookie = "Set-Cookie" |
| 62 | + StrictTransportSecurity = "Strict-Transport-Security" |
| 63 | + TransferEncoding = "Transfer-Encoding" |
| 64 | + Upgrade = "Upgrade" |
| 65 | + Vary = "Vary" |
| 66 | + WWWAuthenticate = "WWW-Authenticate" |
64 | 67 |
|
65 | 68 | // Non-Standard
|
66 |
| - HeaderXFrameOptions = "X-Frame-Options" |
67 |
| - HeaderXXSSProtection = "X-XSS-Protection" |
68 |
| - HeaderContentSecurityPolicy = "Content-Security-Policy" |
69 |
| - HeaderXContentSecurityPolicy = "X-Content-Security-Policy" |
70 |
| - HeaderXWebKitCSP = "X-WebKit-CSP" |
71 |
| - HeaderXContentTypeOptions = "X-Content-Type-Options" |
72 |
| - HeaderXPoweredBy = "X-Powered-By" |
73 |
| - HeaderXUACompatible = "X-UA-Compatible" |
74 |
| - HeaderXForwardedProto = "X-Forwarded-Proto" |
75 |
| - HeaderXHTTPMethodOverride = "X-HTTP-Method-Override" |
76 |
| - HeaderXForwardedFor = "X-Forwarded-For" |
77 |
| - HeaderXRealIP = "X-Real-IP" |
78 |
| - HeaderXCSRFToken = "X-CSRF-Token" |
| 69 | + XFrameOptions = "X-Frame-Options" |
| 70 | + XXSSProtection = "X-XSS-Protection" |
| 71 | + ContentSecurityPolicy = "Content-Security-Policy" |
| 72 | + XContentSecurityPolicy = "X-Content-Security-Policy" |
| 73 | + XWebKitCSP = "X-WebKit-CSP" |
| 74 | + XContentTypeOptions = "X-Content-Type-Options" |
| 75 | + XPoweredBy = "X-Powered-By" |
| 76 | + XUACompatible = "X-UA-Compatible" |
| 77 | + XForwardedProto = "X-Forwarded-Proto" |
| 78 | + XHTTPMethodOverride = "X-HTTP-Method-Override" |
| 79 | + XForwardedFor = "X-Forwarded-For" |
| 80 | + XRealIP = "X-Real-IP" |
| 81 | + XCSRFToken = "X-CSRF-Token" |
79 | 82 | )
|
0 commit comments