-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheaders.go
33 lines (32 loc) · 1.56 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
package hblade
const (
cacheControlHeader = "Cache-Control"
cacheControlAlwaysValidate = "must-revalidate"
cacheControlMedia = "public, max-age=13824000"
contentTypeOptionsHeader = "X-Content-Type-Options"
contentTypeOptions = "nosniff"
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"
appengineRemoteAddr = "X-Appengine-Remote-Addr"
)