headers.go 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. Connection = "Connection"
  20. ContentDisposition = "Content-Disposition"
  21. ContentEncoding = "Content-Encoding"
  22. ContentLanguage = "Content-Language"
  23. ContentLength = "Content-Length"
  24. ContentRange = "Content-Range"
  25. ContentSecurityPolicy = "Content-Security-Policy"
  26. ContentSecurityPolicyReportOnly = "Content-Security-Policy-Report-Only"
  27. ContentType = "Content-Type"
  28. Cookie = "Cookie"
  29. Date = "Date"
  30. Dnt = "Dnt"
  31. Etag = "Etag"
  32. Expect = "Expect"
  33. ExpectCt = "Expect-Ct"
  34. Expires = "Expires"
  35. Forwarded = "Forwarded"
  36. Host = "Host"
  37. IfMatch = "If-Match"
  38. IfModifiedSince = "If-Modified-Since"
  39. IfNoneMatch = "If-None-Match"
  40. IfUnmodifiedSince = "If-Unmodified-Since"
  41. KeepAlive = "Keep-Alive"
  42. LastModified = "Last-Modified"
  43. Link = "Link"
  44. Location = "Location"
  45. Origin = "Origin"
  46. Pragma = "Pragma"
  47. Referer = "Referer"
  48. RequestId = "Request-Id"
  49. RetryAfter = "Retry-After"
  50. Server = "Server"
  51. SetCookie = "Set-Cookie"
  52. StrictTransportSecurity = "Strict-Transport-Security"
  53. Upgrade = "Upgrade"
  54. UserAgent = "User-Agent"
  55. Vary = "Vary"
  56. Via = "Via"
  57. WwwAuthenticate = "Www-Authenticate"
  58. XContentTypeOptions = "X-Content-Type-Options"
  59. XForwardedFor = "X-Forwarded-For"
  60. XForwardedHost = "X-Forwarded-Host"
  61. XForwardedProto = "X-Forwarded-Proto"
  62. XFrameOptions = "X-Frame-Options"
  63. XOriginWidth = "X-Origin-Width"
  64. XOriginHeight = "X-Origin-Height"
  65. XResultWidth = "X-Result-Width"
  66. XResultHeight = "X-Result-Height"
  67. XOriginContentLength = "X-Origin-Content-Length"
  68. )