Documentation ¶
Overview ¶
Package httphdr contains the names of HTTP headers.
Please keep the values in their canonical form.
TODO(a.garipov): Tests for that.
Index ¶
Constants ¶
const ( Authorization = "Authorization" WWWAuthenticate = "Www-Authenticate" )
Common standard headers for authentication.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#authentication.
const ( CacheControl = "Cache-Control" Expires = "Expires" Pragma = "Pragma" )
Common standard headers for caching.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#caching.
const ( Cookie = "Cookie" SetCookie = "Set-Cookie" )
Common standard headers for cookie management.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#cookies.
const ( ETag = "ETag" IfMatch = "If-Match" IfModifiedSince = "If-Modified-Since" IfNoneMatch = "If-None-Match" IfUnmodifiedSince = "If-Unmodified-Since" LastModified = "Last-Modified" Vary = "Vary" )
Common standard headers for conditionals.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#conditionals.
const ( Accept = "Accept" AcceptEncoding = "Accept-Encoding" AcceptLanguage = "Accept-Language" )
Common standard headers for content negotiation.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#content_negotiation.
const ( AccessControlAllowOrigin = "Access-Control-Allow-Origin" Origin = "Origin" )
Common standard headers for CORS.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#cors.
const ( ContentEncoding = "Content-Encoding" ContentLength = "Content-Length" ContentType = "Content-Type" )
Common standard headers for message body information.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#message_body_information.
const ( Host = "Host" Referer = "Referer" UserAgent = "User-Agent" )
Common standard headers for request contexts.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#request_context.
const ( ContentSecurityPolicy = "Content-Security-Policy" ContentSecurityPolicyReportOnly = "Content-Security-Policy-Report-Only" StrictTransportSecurity = "Strict-Transport-Security" )
Common standard headers for security.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#security.
const ( TransferEncoding = "Transfer-Encoding" Trailer = "Trailer" )
Common standard headers for transfer coding.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#transfer_coding.
const ( AltSvc = "Alt-Svc" Date = "Date" RetryAfter = "Retry-After" )
Miscellaneous common standard headers.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#other.
const ( AdminToken = "Admin-Token" TrueClientIP = "True-Client-Ip" XConnectingIP = "X-Connecting-Ip" XContentTypeOptions = "X-Content-Type-Options" XError = "X-Error" XForwardedFor = "X-Forwarded-For" XForwardedHost = "X-Forwarded-Host" XForwardedProto = "X-Forwarded-Proto" XProjectName = "X-Project-Name" XProxyTarget = "X-Proxy-Target" XRealIP = "X-Real-Ip" XRequestID = "X-Request-Id" XRequestedWith = "X-Requested-With" )
Common extension headers.
const ( CFConnectingIP = "Cf-Connecting-Ip" CFIPCountry = "Cf-Ipcountry" )
Common Cloudflare extension headers.
const (
ContentDisposition = "Content-Disposition"
)
Common standard headers for controlling downloads.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#downloads.
const (
DNT = "Dnt"
)
Common deprecated headers.
const (
Forwarded = "Forwarded"
)
Common standard headers for proxies.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#proxies.
const (
IfRange = "If-Range"
)
Common standard headers for range requests.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#range_requests.
const (
Location = "Location"
)
Common standard headers for redirects.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#redirects
const (
SecFetchDest = "Sec-Fetch-Dest"
)
Common standard headers for fetch metadata.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#fetch_metadata_request_headers.
const (
SecGPC = "Sec-Gpc"
)
Common standard headers for client hints.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#client_hints.
const (
Server = "Server"
)
Common standard headers for response contexts.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#response_context.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.