headers.go 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // Inspired by https://github.com/mattrobenolt/go-httpheaders
  2. // Thanks, Matt Robenolt!
  3. package httpheaders
  4. const (
  5. Accept = "Accept"
  6. AcceptCharset = "Accept-Charset"
  7. AcceptEncoding = "Accept-Encoding"
  8. AcceptLanguage = "Accept-Language"
  9. AcceptRanges = "Accept-Ranges"
  10. AccessControlAllowCredentials = "Access-Control-Allow-Credentials"
  11. AccessControlAllowHeaders = "Access-Control-Allow-Headers"
  12. AccessControlAllowMethods = "Access-Control-Allow-Methods"
  13. AccessControlAllowOrigin = "Access-Control-Allow-Origin"
  14. AccessControlMaxAge = "Access-Control-Max-Age"
  15. Age = "Age"
  16. AltSvc = "Alt-Svc"
  17. Authorization = "Authorization"
  18. CacheControl = "Cache-Control"
  19. CFConnectingIP = "CF-Connecting-IP"
  20. Connection = "Connection"
  21. ContentDisposition = "Content-Disposition"
  22. ContentEncoding = "Content-Encoding"
  23. ContentLanguage = "Content-Language"
  24. ContentLength = "Content-Length"
  25. ContentRange = "Content-Range"
  26. ContentSecurityPolicy = "Content-Security-Policy"
  27. ContentSecurityPolicyReportOnly = "Content-Security-Policy-Report-Only"
  28. ContentType = "Content-Type"
  29. Cookie = "Cookie"
  30. Date = "Date"
  31. Dnt = "Dnt"
  32. Dpr = "Dpr"
  33. Etag = "Etag"
  34. Expect = "Expect"
  35. ExpectCt = "Expect-Ct"
  36. Expires = "Expires"
  37. Forwarded = "Forwarded"
  38. Host = "Host"
  39. IfMatch = "If-Match"
  40. IfModifiedSince = "If-Modified-Since"
  41. IfNoneMatch = "If-None-Match"
  42. IfUnmodifiedSince = "If-Unmodified-Since"
  43. KeepAlive = "Keep-Alive"
  44. LastModified = "Last-Modified"
  45. Link = "Link"
  46. Location = "Location"
  47. Origin = "Origin"
  48. Pragma = "Pragma"
  49. Range = "Range"
  50. Referer = "Referer"
  51. RequestId = "Request-Id"
  52. RetryAfter = "Retry-After"
  53. SecChDpr = "Sec-Ch-Dpr"
  54. SecChWidth = "Sec-Ch-Width"
  55. Server = "Server"
  56. SetCookie = "Set-Cookie"
  57. StrictTransportSecurity = "Strict-Transport-Security"
  58. Upgrade = "Upgrade"
  59. UserAgent = "User-Agent"
  60. Vary = "Vary"
  61. Via = "Via"
  62. Width = "Width"
  63. WwwAuthenticate = "Www-Authenticate"
  64. XAmznRequestContextHeader = "x-amzn-request-context"
  65. XContentTypeOptions = "X-Content-Type-Options"
  66. XForwardedFor = "X-Forwarded-For"
  67. XForwardedHost = "X-Forwarded-Host"
  68. XForwardedPort = "X-Forwarded-Port"
  69. XForwardedProto = "X-Forwarded-Proto"
  70. XFrameOptions = "X-Frame-Options"
  71. XOriginWidth = "X-Origin-Width"
  72. XOriginHeight = "X-Origin-Height"
  73. XRealIP = "X-Real-IP"
  74. XRequestID = "X-Request-ID"
  75. XResultWidth = "X-Result-Width"
  76. XResultHeight = "X-Result-Height"
  77. XOriginContentLength = "X-Origin-Content-Length"
  78. )