This repository has been archived by the owner on Jul 6, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Headers.go
39 lines (38 loc) · 1.83 KB
/
Headers.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
package aero
// This list includes all the common header keys
// and values used in the http server code.
const (
cacheControlHeader = "Cache-Control"
cacheControlAlwaysValidate = "must-revalidate"
cacheControlMedia = "public, max-age=13824000"
cacheControlNoCache = "no-cache"
connectionHeader = "Connection"
connectionKeepAlive = "keep-alive"
contentTypeOptionsHeader = "X-Content-Type-Options"
contentTypeOptions = "nosniff"
corsHeader = "Access-Control-Allow-Origin"
corsAll = "*"
xssProtectionHeader = "X-XSS-Protection"
xssProtection = "1; mode=block"
etagHeader = "ETag"
contentTypeHeader = "Content-Type"
contentTypeHTML = "text/html; charset=utf-8"
contentTypeCSS = "text/css; charset=utf-8"
contentTypeJavaScript = "text/javascript; charset=utf-8"
contentTypeJSON = "application/json; charset=utf-8"
contentTypePlainText = "text/plain; charset=utf-8"
contentTypeEventStream = "text/event-stream; charset=utf-8"
contentTypeSVG = "image/svg+xml"
contentEncodingHeader = "Content-Encoding"
contentEncodingGzip = "gzip"
acceptEncodingHeader = "Accept-Encoding"
contentLengthHeader = "Content-Length"
ifNoneMatchHeader = "If-None-Match"
referrerPolicyHeader = "Referrer-Policy"
referrerPolicySameOrigin = "no-referrer"
strictTransportSecurityHeader = "Strict-Transport-Security"
strictTransportSecurity = "max-age=31536000; includeSubDomains; preload"
contentSecurityPolicyHeader = "Content-Security-Policy"
forwardedForHeader = "X-Forwarded-For"
realIPHeader = "X-Real-Ip"
)