|
@@ -0,0 +1,64 @@
|
|
|
+// Inspired by https://github.com/mattrobenolt/go-httpheaders
|
|
|
+// Thanks, Matt Robenolt!
|
|
|
+package httpheaders
|
|
|
+
|
|
|
+const (
|
|
|
+ Accept = "Accept"
|
|
|
+ AcceptCharset = "Accept-Charset"
|
|
|
+ AcceptEncoding = "Accept-Encoding"
|
|
|
+ AcceptLanguage = "Accept-Language"
|
|
|
+ AcceptRanges = "Accept-Ranges"
|
|
|
+ AccessControlAllowCredentials = "Access-Control-Allow-Credentials"
|
|
|
+ AccessControlAllowHeaders = "Access-Control-Allow-Headers"
|
|
|
+ AccessControlAllowMethods = "Access-Control-Allow-Methods"
|
|
|
+ AccessControlAllowOrigin = "Access-Control-Allow-Origin"
|
|
|
+ AccessControlMaxAge = "Access-Control-Max-Age"
|
|
|
+ Age = "Age"
|
|
|
+ AltSvc = "Alt-Svc"
|
|
|
+ Authorization = "Authorization"
|
|
|
+ CacheControl = "Cache-Control"
|
|
|
+ Connection = "Connection"
|
|
|
+ ContentDisposition = "Content-Disposition"
|
|
|
+ ContentEncoding = "Content-Encoding"
|
|
|
+ ContentLanguage = "Content-Language"
|
|
|
+ ContentLength = "Content-Length"
|
|
|
+ ContentRange = "Content-Range"
|
|
|
+ ContentSecurityPolicy = "Content-Security-Policy"
|
|
|
+ ContentSecurityPolicyReportOnly = "Content-Security-Policy-Report-Only"
|
|
|
+ ContentType = "Content-Type"
|
|
|
+ Cookie = "Cookie"
|
|
|
+ Date = "Date"
|
|
|
+ Dnt = "Dnt"
|
|
|
+ Etag = "Etag"
|
|
|
+ Expect = "Expect"
|
|
|
+ ExpectCt = "Expect-Ct"
|
|
|
+ Expires = "Expires"
|
|
|
+ Forwarded = "Forwarded"
|
|
|
+ Host = "Host"
|
|
|
+ IfMatch = "If-Match"
|
|
|
+ IfModifiedSince = "If-Modified-Since"
|
|
|
+ IfNoneMatch = "If-None-Match"
|
|
|
+ IfUnmodifiedSince = "If-Unmodified-Since"
|
|
|
+ KeepAlive = "Keep-Alive"
|
|
|
+ LastModified = "Last-Modified"
|
|
|
+ Link = "Link"
|
|
|
+ Location = "Location"
|
|
|
+ Origin = "Origin"
|
|
|
+ Pragma = "Pragma"
|
|
|
+ Referer = "Referer"
|
|
|
+ RequestId = "Request-Id"
|
|
|
+ RetryAfter = "Retry-After"
|
|
|
+ Server = "Server"
|
|
|
+ SetCookie = "Set-Cookie"
|
|
|
+ StrictTransportSecurity = "Strict-Transport-Security"
|
|
|
+ Upgrade = "Upgrade"
|
|
|
+ UserAgent = "User-Agent"
|
|
|
+ Vary = "Vary"
|
|
|
+ Via = "Via"
|
|
|
+ WwwAuthenticate = "Www-Authenticate"
|
|
|
+ XContentTypeOptions = "X-Content-Type-Options"
|
|
|
+ XForwardedFor = "X-Forwarded-For"
|
|
|
+ XForwardedHost = "X-Forwarded-Host"
|
|
|
+ XForwardedProto = "X-Forwarded-Proto"
|
|
|
+ XFrameOptions = "X-Frame-Options"
|
|
|
+)
|