source: code/trunk/vendor/github.com/valyala/fasthttp/headers.go@ 145

Last change on this file since 145 was 145, checked in by Izuru Yakumo, 22 months ago

Updated the Makefile and vendored depedencies

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 5.7 KB
Line 
1package fasthttp
2
3// Headers
4const (
5 // Authentication
6 HeaderAuthorization = "Authorization"
7 HeaderProxyAuthenticate = "Proxy-Authenticate"
8 HeaderProxyAuthorization = "Proxy-Authorization"
9 HeaderWWWAuthenticate = "WWW-Authenticate"
10
11 // Caching
12 HeaderAge = "Age"
13 HeaderCacheControl = "Cache-Control"
14 HeaderClearSiteData = "Clear-Site-Data"
15 HeaderExpires = "Expires"
16 HeaderPragma = "Pragma"
17 HeaderWarning = "Warning"
18
19 // Client hints
20 HeaderAcceptCH = "Accept-CH"
21 HeaderAcceptCHLifetime = "Accept-CH-Lifetime"
22 HeaderContentDPR = "Content-DPR"
23 HeaderDPR = "DPR"
24 HeaderEarlyData = "Early-Data"
25 HeaderSaveData = "Save-Data"
26 HeaderViewportWidth = "Viewport-Width"
27 HeaderWidth = "Width"
28
29 // Conditionals
30 HeaderETag = "ETag"
31 HeaderIfMatch = "If-Match"
32 HeaderIfModifiedSince = "If-Modified-Since"
33 HeaderIfNoneMatch = "If-None-Match"
34 HeaderIfUnmodifiedSince = "If-Unmodified-Since"
35 HeaderLastModified = "Last-Modified"
36 HeaderVary = "Vary"
37
38 // Connection management
39 HeaderConnection = "Connection"
40 HeaderKeepAlive = "Keep-Alive"
41 HeaderProxyConnection = "Proxy-Connection"
42
43 // Content negotiation
44 HeaderAccept = "Accept"
45 HeaderAcceptCharset = "Accept-Charset"
46 HeaderAcceptEncoding = "Accept-Encoding"
47 HeaderAcceptLanguage = "Accept-Language"
48
49 // Controls
50 HeaderCookie = "Cookie"
51 HeaderExpect = "Expect"
52 HeaderMaxForwards = "Max-Forwards"
53 HeaderSetCookie = "Set-Cookie"
54
55 // CORS
56 HeaderAccessControlAllowCredentials = "Access-Control-Allow-Credentials"
57 HeaderAccessControlAllowHeaders = "Access-Control-Allow-Headers"
58 HeaderAccessControlAllowMethods = "Access-Control-Allow-Methods"
59 HeaderAccessControlAllowOrigin = "Access-Control-Allow-Origin"
60 HeaderAccessControlExposeHeaders = "Access-Control-Expose-Headers"
61 HeaderAccessControlMaxAge = "Access-Control-Max-Age"
62 HeaderAccessControlRequestHeaders = "Access-Control-Request-Headers"
63 HeaderAccessControlRequestMethod = "Access-Control-Request-Method"
64 HeaderOrigin = "Origin"
65 HeaderTimingAllowOrigin = "Timing-Allow-Origin"
66 HeaderXPermittedCrossDomainPolicies = "X-Permitted-Cross-Domain-Policies"
67
68 // Do Not Track
69 HeaderDNT = "DNT"
70 HeaderTk = "Tk"
71
72 // Downloads
73 HeaderContentDisposition = "Content-Disposition"
74
75 // Message body information
76 HeaderContentEncoding = "Content-Encoding"
77 HeaderContentLanguage = "Content-Language"
78 HeaderContentLength = "Content-Length"
79 HeaderContentLocation = "Content-Location"
80 HeaderContentType = "Content-Type"
81
82 // Proxies
83 HeaderForwarded = "Forwarded"
84 HeaderVia = "Via"
85 HeaderXForwardedFor = "X-Forwarded-For"
86 HeaderXForwardedHost = "X-Forwarded-Host"
87 HeaderXForwardedProto = "X-Forwarded-Proto"
88
89 // Redirects
90 HeaderLocation = "Location"
91
92 // Request context
93 HeaderFrom = "From"
94 HeaderHost = "Host"
95 HeaderReferer = "Referer"
96 HeaderReferrerPolicy = "Referrer-Policy"
97 HeaderUserAgent = "User-Agent"
98
99 // Response context
100 HeaderAllow = "Allow"
101 HeaderServer = "Server"
102
103 // Range requests
104 HeaderAcceptRanges = "Accept-Ranges"
105 HeaderContentRange = "Content-Range"
106 HeaderIfRange = "If-Range"
107 HeaderRange = "Range"
108
109 // Security
110 HeaderContentSecurityPolicy = "Content-Security-Policy"
111 HeaderContentSecurityPolicyReportOnly = "Content-Security-Policy-Report-Only"
112 HeaderCrossOriginResourcePolicy = "Cross-Origin-Resource-Policy"
113 HeaderExpectCT = "Expect-CT"
114 HeaderFeaturePolicy = "Feature-Policy"
115 HeaderPublicKeyPins = "Public-Key-Pins"
116 HeaderPublicKeyPinsReportOnly = "Public-Key-Pins-Report-Only"
117 HeaderStrictTransportSecurity = "Strict-Transport-Security"
118 HeaderUpgradeInsecureRequests = "Upgrade-Insecure-Requests"
119 HeaderXContentTypeOptions = "X-Content-Type-Options"
120 HeaderXDownloadOptions = "X-Download-Options"
121 HeaderXFrameOptions = "X-Frame-Options"
122 HeaderXPoweredBy = "X-Powered-By"
123 HeaderXXSSProtection = "X-XSS-Protection"
124
125 // Server-sent event
126 HeaderLastEventID = "Last-Event-ID"
127 HeaderNEL = "NEL"
128 HeaderPingFrom = "Ping-From"
129 HeaderPingTo = "Ping-To"
130 HeaderReportTo = "Report-To"
131
132 // Transfer coding
133 HeaderTE = "TE"
134 HeaderTrailer = "Trailer"
135 HeaderTransferEncoding = "Transfer-Encoding"
136
137 // WebSockets
138 HeaderSecWebSocketAccept = "Sec-WebSocket-Accept"
139 HeaderSecWebSocketExtensions = "Sec-WebSocket-Extensions"
140 HeaderSecWebSocketKey = "Sec-WebSocket-Key"
141 HeaderSecWebSocketProtocol = "Sec-WebSocket-Protocol"
142 HeaderSecWebSocketVersion = "Sec-WebSocket-Version"
143
144 // Other
145 HeaderAcceptPatch = "Accept-Patch"
146 HeaderAcceptPushPolicy = "Accept-Push-Policy"
147 HeaderAcceptSignature = "Accept-Signature"
148 HeaderAltSvc = "Alt-Svc"
149 HeaderDate = "Date"
150 HeaderIndex = "Index"
151 HeaderLargeAllocation = "Large-Allocation"
152 HeaderLink = "Link"
153 HeaderPushPolicy = "Push-Policy"
154 HeaderRetryAfter = "Retry-After"
155 HeaderServerTiming = "Server-Timing"
156 HeaderSignature = "Signature"
157 HeaderSignedHeaders = "Signed-Headers"
158 HeaderSourceMap = "SourceMap"
159 HeaderUpgrade = "Upgrade"
160 HeaderXDNSPrefetchControl = "X-DNS-Prefetch-Control"
161 HeaderXPingback = "X-Pingback"
162 HeaderXRequestedWith = "X-Requested-With"
163 HeaderXRobotsTag = "X-Robots-Tag"
164 HeaderXUACompatible = "X-UA-Compatible"
165)
Note: See TracBrowser for help on using the repository browser.