headers.go 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. Etag = "Etag"
  33. Expect = "Expect"
  34. ExpectCt = "Expect-Ct"
  35. Expires = "Expires"
  36. Forwarded = "Forwarded"
  37. Host = "Host"
  38. IfMatch = "If-Match"
  39. IfModifiedSince = "If-Modified-Since"
  40. IfNoneMatch = "If-None-Match"
  41. IfUnmodifiedSince = "If-Unmodified-Since"
  42. KeepAlive = "Keep-Alive"
  43. LastModified = "Last-Modified"
  44. Link = "Link"
  45. Location = "Location"
  46. Origin = "Origin"
  47. Pragma = "Pragma"
  48. Range = "Range"
  49. Referer = "Referer"
  50. RequestId = "Request-Id"
  51. RetryAfter = "Retry-After"
  52. Server = "Server"
  53. SetCookie = "Set-Cookie"
  54. StrictTransportSecurity = "Strict-Transport-Security"
  55. Upgrade = "Upgrade"
  56. UserAgent = "User-Agent"
  57. Vary = "Vary"
  58. Via = "Via"
  59. WwwAuthenticate = "Www-Authenticate"
  60. XAmznRequestContextHeader = "x-amzn-request-context"
  61. XContentTypeOptions = "X-Content-Type-Options"
  62. XForwardedFor = "X-Forwarded-For"
  63. XForwardedHost = "X-Forwarded-Host"
  64. XForwardedProto = "X-Forwarded-Proto"
  65. XFrameOptions = "X-Frame-Options"
  66. XOriginWidth = "X-Origin-Width"
  67. XOriginHeight = "X-Origin-Height"
  68. XRealIP = "X-Real-IP"
  69. XRequestID = "X-Request-ID"
  70. XResultWidth = "X-Result-Width"
  71. XResultHeight = "X-Result-Height"
  72. XOriginContentLength = "X-Origin-Content-Length"
  73. )