Documentation
¶
Overview ¶
Package headers package provides constants of HTTP headers.
The list of HTTP headers is taken from https://en.wikipedia.org/wiki/List_of_HTTP_header_fields .
Index ¶
Constants ¶
const AIM = "A-IM"
A-IM
Acceptable instance-manipulations for the request.
Class: Request field, Standard, Permanent
Example:
A-IM: feed
Standard:
const Accept = "Accept"
Accept
Media type(s) that is/are acceptable for the response. See Content negotiation.
Class: Request field, Standard, Permanent
Example:
Accept: text/html
Standard:
const AcceptCH = "Accept-CH"
Accept-CH
Requests HTTP Client Hints.
Class: Response field, Standard, Experimental
Example:
Accept-CH: UA, Platform
Standard:
const AcceptCharset = "Accept-Charset"
Accept-Charset
Character sets that are acceptable.
Class: Request field, Standard, Permanent
Example:
Accept-Charset: utf-8
Standard:
const AcceptDatetime = "Accept-Datetime"
Accept-Datetime
Acceptable version in time.
Class: Request field, Standard, Provisional
Example:
Accept-Datetime: Thu, 31 May 2007 20:35:00 GMT
Standard:
const AcceptEncoding = "Accept-Encoding"
Accept-Encoding
List of acceptable encodings. See HTTP compression.
Class: Request field, Standard, Permanent
Example:
Accept-Encoding: gzip, deflate
Standard:
const AcceptLanguage = "Accept-Language"
Accept-Language
List of acceptable human languages for response. See Content negotiation.
Class: Request field, Standard, Permanent
Example:
Accept-Language: en-US
Standard:
const AcceptPatch = "Accept-Patch"
Accept-Patch
Specifies which patch document formats this server supports.
Class: Response field, Standard, Permanent
Example:
Accept-Patch: text/example;charset=utf-8
Standard:
const AcceptRanges = "Accept-Ranges"
Accept-Ranges
What partial content range types this server supports via byte serving.
Class: Response field, Standard, Permanent
Example:
Accept-Ranges: bytes
Standard:
const AccessControlAllowCredentials = "Access-Control-Allow-Credentials"
Access-Control-Allow-Credentials
Specifying which web sites can participate in cross-origin resource sharing.
Class: Response field, Standard
Standard:
const AccessControlAllowHeaders = "Access-Control-Allow-Headers"
Access-Control-Allow-Headers
Specifying which web sites can participate in [cross-origin resource sharing].
Class: Response field, Standard
Standard:
const AccessControlAllowMethods = "Access-Control-Allow-Methods"
Access-Control-Allow-Methods
Specifying which web sites can participate in cross-origin resource sharing.
Class: Response field, Standard
Standard:
const AccessControlAllowOrigin = "Access-Control-Allow-Origin"
Access-Control-Allow-Origin
Specifying which web sites can participate in cross-origin resource sharing.
Class: Response field, Standard, Permanent
Example:
Access-Control-Allow-Origin: *
Standard:
const AccessControlExposeHeaders = "Access-Control-Expose-Headers"
Access-Control-Expose-Headers
Specifying which web sites can participate in cross-origin resource sharing.
Class: Response field, Standard
Standard:
const AccessControlMaxAge = "Access-Control-Max-Age"
Access-Control-Max-Age
Specifying which web sites can participate in cross-origin resource sharing.
Class: Response field, Standard
Standard:
const AccessControlRequestHeaders = "Access-Control-Request-Headers"
Access-Control-Request-Headers
Initiates a request for cross-origin resource sharing with Origin.
Class: Request field, Standard, Permanent
Example:
Access-Control-Request-Method: GET
const AccessControlRequestMethod = "Access-Control-Request-Method"
Access-Control-Request-Method
Initiates a request for cross-origin resource sharing with Origin.
Class: Request field, Standard, Permanent
Example:
Access-Control-Request-Method: GET
const Age = "Age"
Age
The age the object has been in a proxy cache in seconds.
Class: Response field, Standard, Permanent
Example:
Age: 12
Standard:
const Allow = "Allow"
Allow
Valid methods for a specified resource. To be used for a 405 Method not allowed
Class: Response field, Standard, Permanent
Example:
Allow: GET, HEAD
Standard:
const AltSvc = "Alt-Svc"
Alt-Svc
A server uses "Alt-Svc" header (meaning Alternative Services) to indicate that its resources can also be accessed at a different network location (host or port) or using a different protocol
When using HTTP/2, servers should instead send an ALTSVC frame.
Class: Response field, Standard, Permanent
Example:
Alt-Svc: http/1.1="http2.example.com:8001"; ma=7200
const Authorization = "Authorization"
Authorization
Authentication credentials for HTTP authentication.
Class: Request field, Standard, Permanent
Example:
Authorization: Basic QWxhZGRpbApVcGVuIHNlc2FtZQ==
Standard:
const CacheControl = "Cache-Control"
Cache-Control
Request: Used to specify directives that must be obeyed by all caching mechanisms along the request-response chain.
Response: Tells all caching mechanisms from server to client whether they may cache this object. Measured in seconds.
Class: Request field, Response field, Standard, Permanent
Example:
Cache-Control: no-cache Cache-Control: max-age=3600
Standard:
const Connection = "Connection"
Connection
Control options for the current connection and list of hop-by-hop request fields.
Must not be used with HTTP/2.
Class: Request field, Response field, Standard, Permanent
Example:
Connection: keep-alive Connection: Upgrade
Standard:
const ContentDisposition = "Content-Disposition"
Content-Disposition
An opportunity to raise a "File Download" dialogue box for a known MIME type with binary format or suggest a filename for dynamic content. Quotes are necessary with special characters.
Class: Response field, Standard, Permanent
Example:
Content-Disposition: attachment; filename="name.ext"
Standard:
const ContentEncoding = "Content-Encoding"
Content-Encoding
The type of encoding used on the data. See HTTP compression.
Class: Request field, Response field, Standard, Permanent
Example:
Content-Encoding: gzip
Standard:
const ContentLanguage = "Content-Language"
Content-Language
The natural language or languages of the intended audience for the enclosed content.
Class: Response field, Standard, Permanent
Example:
Content-Language: da
Standard:
const ContentLocation = "Content-Location"
Content-Location
An alternate location for the returned data.
Class: Response field, Standard, Permanent
Example:
Content-Location: /index.htm
Standard:
const ContentMD5 = "Content-MD5"
Content-MD5
A Base64-encoded binary MD5 sum of the content of the body.
Class: Request field, Response field, Standard, Obsolete
Example:
Content-MD5: Q2hlY2sgSW50ZWdYaXR5IQ==
Standard:
const ContentRange = "Content-Range"
Content-Range
Where in a full body message this partial message belongs.
Class: Response field, Standard, Permanent
Example:
Content-Range: bytes 21010-47021/47022
Standard:
const ContentSecurityPolicy = "Content-Security-Policy"
Content-Security-Policy
Content Security Policy definition.
Class: Response field, Non-standard
Example:
X-WebKit-CSP: default-src 'self'
const ContentType = "Content-Type"
Content-Type
Request: The Media type (MIME) of the body of the request (used with POST and PUT requests).
Response: The Media type of the body.
Class: Request field, Response field, Standard, Permanent
Example:
Content-Type: application/x-www-form-urlencoded
Standard:
const Cookie = "Cookie"
Cookie
An HTTP cookie previously sent by the server with Set-Cookie.
Class: Request field, Standard, Permanent
Example:
Cookie: $Version=1; Skin=new;
Standard:
const CorrelationID = "Correlation-ID"
Correlation-ID
Correlates HTTP requests between a client and server.
Class: Request field, Non-standard
Example:
Correlation-ID: f058ebd6-02f7-4d3f-942e-904344e8cde5
const DNT = "DNT"
DNT
Requests a web application to disable their tracking of a user. This is Mozilla's version of the X-Do-Not-Track header field (since Firefox 4.0 Beta 11). Safari and IE9 also have support for this field. On March 7, 2011, a draft proposal was submitted to IETF. The W3C Tracking Protection Working Group is producing a specification.
Class: Request field, Non-standard
Example:
DNT: 1 (Do Not Track Enabled) DNT: 0 (Do Not Track Disabled)
const Date = "Date"
Date
The date and time at which the message was originated (in "HTTP-date" format as defined by RFC 9110: HTTP Semantics, section 5.6.7 "Date/Time Formats").
Class: Request field, Standard, Permanent
Example:
Date: Tue, 15 Nov 1994 08:12:31 GMT
Standard:
const DeltaBase = "Delta-Base"
Delta-Base
Specifies the delta-encoding entity tag of the response.
Class: Response field, Standard, Permanent
Example:
Delta-Base: "abc"
Standard:
const ETag = "ETag"
ETag
An identifier for a specific version of a resource, often a message digest.
Class: Response field, Standard, Permanent
Example:
ETag: "737060cd8c284d8af7ad3082f209582d"
Standard:
const Expect = "Expect"
Expect
Indicates that particular server behaviors are required by the client.
Class: Request field, Standard, Permanent
Example:
Expect: 100-continue
Standard:
const ExpectCT = "Expect-CT"
Expect-CT
Notify to prefer to enforce Certificate Transparency.
Class: Response field, Non-standard
Example:
Expect-CT: max-age=604800, enforce, report-uri="https://example.example/report"
const Expires = "Expires"
Expires
Gives the date/time after which the response is considered stale (in "HTTP-date" format as defined by RFC 9110)
Class: Response field, Standard, Permanent
Example:
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Standard:
const Forwarded = "Forwarded"
Forwarded
Disclose original information of a client connecting to a web server through an HTTP proxy.
Class: Request field, Standard, Permanent
Example:
Forwarded: for=192.0.2.60;proto=http;by=203.0.113.43 Forwarded: for=192.0.2.43, for=198.51.100.17
Standard:
const From = "From"
From
The email address of the user making the request.
Class: Request field, Standard, Permanent
Example:
From: user@example.com
Standard:
const FrontEndHttps = "Front-End-Https"
Front-End-Https
Non-standard header field used by Microsoft applications and load-balancers.
Class: Request field, Non-standard
Example:
Front-End-Https: on
const HTTP2Settings = "HTTP2-Settings"
HTTP2-Settings
A request that upgrades from HTTP/1.1 to HTTP/2 MUST include exactly one HTTP2-Setting header field. The HTTP2-Settings header field is a connection-specific header field that includes parameters that govern the HTTP/2 connection, provided in anticipation of the server accepting the request to upgrade.
Class: Request field, Standard, Permanent
Example:
HTTP2-Settings: token64
const Host = "Host"
Host
The domain name of the server (for virtual hosting), and the TCP port number on which the server is listening. The port number may be omitted if the port is the standard port for the service requested.
Mandatory since HTTP/1.1. If the request is generated directly in HTTP/2, it should not be used.
Class: Request field, Standard
Example:
Host: en.wikipedia.org:8080 Host: en.wikipedia.org
const IM = "IM"
IM
Instance-manipulations applied to the response.
Class: Response field, Standard, Permanent
Example:
IM: feed
Standard:
const IfMatch = "If-Match"
If-Match
Only perform the action if the client supplied entity matches the same entity on the server. This is mainly for methods like PUT to only update a resource if it has not been modified since the user last updated it.
Class: Request field, Standard, Permanent
Example:
If-Match: "737060cd8c284d8af7ad3082f209582d"
Standard:
const IfModifiedSince = "If-Modified-Since"
If-Modified-Since
Allows a 304 Not Modified to be returned if content is unchanged.
Class: Request field, Standard, Permanent
Example:
If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
Standard:
const IfNoneMatch = "If-None-Match"
If-None-Match
Allows a 304 Not Modified to be returned if content is unchanged, see HTTP ETag.
Class: Request field, Standard, Permanent
Example:
If-None-Match: "737060cd8c284d8af7ad3082f209582d"
Standard:
const IfRange = "If-Range"
If-Range
If the entity is unchanged, send me the part(s) that I am missing; otherwise, send me the entire new entity.
Class: Request field, Standard, Permanent
Example:
If-Range: "737060cd8c284d8af7ad3082f209582d"
Standard:
const IfUnmodifiedSince = "If-Unmodified-Since"
If-Unmodified-Since
Only send the response if the entity has not been modified since a specific time.
Class: Request field, Standard, Permanent
Example:
If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT
Standard:
const LastModified = "Last-Modified"
Last-Modified
The last modified date for the requested object (in "HTTP-date" format as defined by RFC 9110)
Class: Response field, Standard, Permanent
Example:
Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT
Standard:
const Link = "Link"
Link
Used to express a typed relationship with another resource, where the relation type is defined by RFC 5988.
Class: Response field, Standard, Permanent
Example:
Link: </feed>; rel="alternate"
Standard:
const Location = "Location"
Location
Used in redirection, or when a new resource has been created.
Class: Response field, Standard, Permanent
Example:
Example 1: Location: http://www.w3.org/pub/WWW/People.html Example 2: Location: /pub/WWW/People.html
Standard:
const MaxForwards = "Max-Forwards"
Max-Forwards
Limit the number of times the message can be forwarded through proxies or gateways.
Class: Request field, Standard, Permanent
Example:
Max-Forwards: 10
Standard:
const NEL = "NEL"
NEL
Used to configure network request logging.
Class: Response field, Non-standard
Example:
NEL: {"report_to":"name_of_reporting_group", "max_age":12345, "include_subdomains":false, "success_fraction":0.0, "failure_fraction":1.0}
const Origin = "Origin"
Origin
Initiates a request for cross-origin resource sharing (asks server for Access-Control-* response fields).
Class: Request field, Standard, Permanent
Example:
Origin: http://www.example-social-network.com
Standard:
const P3P = "P3P"
P3P
This field is supposed to set P3P policy, in the form of P3P:CP="your_compact_policy". However, P3P did not take off, most browsers have never fully implemented it, a lot of websites set this field with fake policy text, that was enough to fool browsers the existence of P3P policy and grant permissions for third party cookies.
Class: Response field, Standard, Permanent
Example:
P3P: CP="This is not a P3P policy! See https://en.wikipedia.org/wiki/Special:CentralAutoLogin/P3P for more info."
const PermissionsPolicy = "Permissions-Policy"
Permissions-Policy
To allow or disable different features or APIs of the browser.
Class: Response field, Non-standard
Example:
Permissions-Policy: fullscreen=(), camera=(), microphone=(), geolocation=(), interest-cohort=()
const Pragma = "Pragma"
Pragma
Implementation-specific fields that may have various effects anywhere along the request-response chain.
Class: Request field, Response field, Standard, Permanent
Example:
Pragma: no-cache
Standard:
const Prefer = "Prefer"
Prefer
Allows client to request that certain behaviors be employed by a server while processing a request.
Class: Request field, Standard, Permanent
Example:
Prefer: return=representation
Standard:
const PreferenceApplied = "Preference-Applied"
Preference-Applied
Indicates which Prefer tokens were honored by the server and applied to the processing of the request.
Class: Response field, Standard, Permanent
Example:
Preference-Applied: return=representation
Standard:
const ProxyAuthenticate = "Proxy-Authenticate"
Proxy-Authenticate
Request authentication to access the proxy.
Class: Response field, Standard, Permanent
Example:
Proxy-Authenticate: Basic
Standard:
const ProxyAuthorization = "Proxy-Authorization"
Proxy-Authorization
Authorization credentials for connecting to a proxy.
Class: Request field, Standard, Permanent
Example:
Proxy-Authorization: Basic QWxhZGRpbJpVcGVuIHNlc2FtZQ==
Standard:
const ProxyConnection = "Proxy-Connection"
Proxy-Connection
Implemented as a misunderstanding of the HTTP specifications. Common because of mistakes in implementations of early HTTP versions. Has exactly the same functionality as standard Connection field.
Must not be used with HTTP/2.
Class: Request field, Non-standard
Example:
Proxy-Connection: keep-alive
const PublicKeyPins = "Public-Key-Pins"
Public-Key-Pins
HTTP Public Key Pinning, announces hash of website's authentic TLS certificate.
Class: Response field, Standard, Permanent
Example:
Public-Key-Pins: max-age=2592000; pin-sha256="E9CZ9INDbd+2eRQozYqqbQ2yXLVKB9+xcprMF+44U1g=";
Standard:
const Range = "Range"
Range
Request only part of an entity. Bytes are numbered from 0. See Byte serving.
Class: Request field, Standard, Permanent
Example:
Range: bytes=500-999
Standard:
const Referer = "Referer"
Referer
This is the address of the previous web page from which a link to the currently requested page was followed. (The word "referrer" has been misspelled in the RFC as well as in most implementations to the point that it has become standard usage and is considered correct terminology)
Class: Request field, Standard, Permanent
Example:
Referer: http://en.wikipedia.org/wiki/Main_Page
Standard:
const Refresh = "Refresh"
Refresh
Used in redirection, or when a new resource has been created. This refresh redirects after 5 seconds. Header extension introduced by Netscape and supported by most web browsers. Defined by HTML Standard
Class: Response field, Non-standard
Example:
Refresh: 5; url=http://www.w3.org/pub/WWW/People.html
const ReportTo = "Report-To"
Report-To
Instructs the user agent to store reporting endpoints for an origin.
Class: Response field, Non-standard
Example:
Report-To: {"group":"csp-endpoint", "max_age":10886400, "endpoints":[{"url":"https-url-of-site-which-collects-reports"}]}
const RetryAfter = "Retry-After"
Retry-After
If an entity is temporarily unavailable, this instructs the client to try again later. Value could be a specified period of time (in seconds) or a HTTP-date.
Class: Response field, Standard, Permanent
Example:
Example 1: Retry-After: 120 Example 2: Retry-After: Fri, 07 Nov 2014 23:59:59 GMT
Standard:
const SaveData = "Save-Data"
Save-Data
The Save-Data client hint request header available in Chrome, Opera, and Yandex browsers lets developers deliver lighter, faster applications to users who opt-in to data saving mode in their browser.
Class: Request field, Non-standard
Example:
Save-Data: on
const Server = "Server"
Server
A name for the server.
Class: Response field, Standard, Permanent
Example:
Server: Apache/2.4.1 (Unix)
Standard:
const SetCookie = "Set-Cookie"
Set-Cookie
An HTTP cookie/
Class: Response field, Standard, Permanent
Example:
Set-Cookie: UserID=JohnDoe; Max-Age=3600; Version=1
Standard:
const Status = "Status"
Status
CGI header field specifying the status of the HTTP response. Normal HTTP responses use a separate "Status-Line" instead, defined by RFC 9110.
Class: Response field, Non-standard
Example:
Status: 200 OK
const StrictTransportSecurity = "Strict-Transport-Security"
Strict-Transport-Security
A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains.
Class: Response field, Standard, Permanent
Example:
Strict-Transport-Security: max-age=16070400; includeSubDomains
const TE = "TE"
TE
The transfer encodings the user agent is willing to accept: the same values as for the response header field Transfer-Encoding can be used, plus the "trailers" value (related to the "chunked" transfer method) to notify the server it expects to receive additional fields in the trailer after the last, zero-sized, chunk.
Only trailers is supported in HTTP/2.
Class: Request field, Standard, Permanent
Example:
TE: trailers, deflate
Standard:
const TimingAllowOrigin = "Timing-Allow-Origin"
Timing-Allow-Origin
The Timing-Allow-Origin response header specifies origins that are allowed to see values of attributes retrieved via features of the Resource Timing API, which would otherwise be reported as zero due to cross-origin restrictions.
Class: Response field, Non-standard
Example:
Timing-Allow-Origin: * Timing-Allow-Origin: <origin>[, <origin>]*
const Tk = "Tk"
Tk
Tracking Status header, value suggested to be sent in response to a DNT(do-not-track), possible values:
- "!" — under construction
- "?" — dynamic
- "G" — gateway to multiple parties
- "N" — not tracking
- "T" — tracking
- "C" — tracking with consent
- "P" — tracking only if consented
- "D" — disregarding DNT
- "U" — updated
Class: Response field, Standard, Permanent
Example:
Tk: ?
const Trailer = "Trailer"
Trailer
The Trailer general field value indicates that the given set of header fields is present in the trailer of a message encoded with chunked transfer coding.
Class: Request field, Response field, Standard, Permanent
Example:
Trailer: Max-Forwards
Standard:
const TransferEncoding = "Transfer-Encoding"
Transfer-Encoding
The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity.
Must not be used with HTTP/2.
Class: Request field, Response field, Standard, Permanent
Example:
Transfer-Encoding: chunked
Standard:
const Upgrade = "Upgrade"
Upgrade
Ask the server to upgrade to another protocol.
Must not be used in HTTP/2.
Class: Request field, Response field, Standard, Permanent
Example:
Upgrade: h2c, HTTPS/1.3, IRC/6.9, RTA/x11, websocket
Standard:
const UpgradeInsecureRequests = "Upgrade-Insecure-Requests"
Upgrade-Insecure-Requests
Tells a server which (presumably in the middle of a HTTP -> HTTPS migration) hosts mixed content that the client would prefer redirection to HTTPS and can handle Content-Security-Policy: upgrade-insecure-requests Must not be used with HTTP/2
Class: Request field, Non-standard
Example:
Upgrade-Insecure-Requests: 1
const UserAgent = "User-Agent"
User-Agent
The user agent string of the user agent.
Class: Request field, Standard, Permanent
Example:
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0
Standard:
const Vary = "Vary"
Vary
Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server.
Class: Response field, Standard, Permanent
Example:
Example 1: Vary: * Example 2: Vary: Accept-Language
Standard:
const Via = "Via"
Via
Informs the server of proxies through which the request was sent.
Class: Request field, Response field, Standard, Permanent
Example:
Via: 1.0 fred, 1.1 example.com (Apache/1.1)
Standard:
const WWWAuthenticate = "WWW-Authenticate"
WWW-Authenticate
Indicates the authentication scheme that should be used to access the requested entity.
Class: Response field, Standard, Permanent
Example:
WWW-Authenticate: Basic
Standard:
const Warning = "Warning"
Warning
A general warning about possible problems with the entity body.
Class: Request field,Response field, Standard, Obsolete
Example:
Warning: 199 Miscellaneous warning
Standard:
const XAttDeviceId = "X-ATT-DeviceId"
X-ATT-DeviceId
Allows easier parsing of the MakeModel/Firmware that is usually found in the User-Agent String of AT&T Devices
Class: Request field, Non-standard
Example:
X-Att-DeviceId: GT-P7320/P7320XX5PG
const XContentDuration = "X-Content-Duration"
X-Content-Duration
Provide the duration of the audio or video in seconds; only supported by Gecko browsers
Class: Response field, Non-standard
Example:
X-Content-Duration: 42.666
const XContentSecurityPolicy = "X-Content-Security-Policy"
X-Content-Security-Policy
Class: Response field, Non-standard
Example:
const XContentTypeOptions = "X-Content-Type-Options"
X-Content-Type-Options
The only defined value, "nosniff", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type. This also applies to Google Chrome, when downloading extensions.
Class: Response field, Non-standard
Example:
X-Content-Type-Options: nosniff
const XCorrelationID = "X-Correlation-ID"
X-Correlation-ID
Correlates HTTP requests between a client and server.
Class: Request field, Response field, Non-standard
Example:
X-Correlation-ID: f058ebd6-02f7-4d3f-942e-904344e8cde5
const XCsrfToken = "X-Csrf-Token"
X-Csrf-Token
Used to prevent cross-site request forgery. Alternative header names are: X-CSRFToken and X-XSRF-TOKEN
Class: Request field, Non-standard
Example:
X-Csrf-Token: i8XNjC4b8KVok4uw5RftR38Wgp2BFwQl
const XForwardedFor = "X-Forwarded-For"
X-Forwarded-For
A de facto standard for identifying the originating IP address of a client connecting to a web server through an HTTP proxy or load balancer. Superseded by Forwarded header.
Class: Request field, Non-standard
Example:
X-Forwarded-For: client1, proxy1, proxy2 X-Forwarded-For: 129.78.138.66, 129.78.64.103
const XForwardedHost = "X-Forwarded-Host"
X-Forwarded-Host
A de facto standard for identifying the original host requested by the client in the Host HTTP request header, since the host name and/or port of the reverse proxy (load balancer) may differ from the origin server handling the request. Superseded by Forwarded header.
Class: Request field, Non-standard
Example:
X-Forwarded-Host: en.wikipedia.org:8080 X-Forwarded-Host: en.wikipedia.org
const XForwardedProto = "X-Forwarded-Proto"
X-Forwarded-Proto
A de facto standard for identifying the originating protocol of an HTTP request, since a reverse proxy (or a load balancer) may communicate with a web server using HTTP even if the request to the reverse proxy is HTTPS. An alternative form of the header (X-ProxyUser-Ip) is used by Google clients talking to Google servers. Superseded by Forwarded header.
Class: Request field, Non-standard
Example:
X-Forwarded-Proto: https
const XFrameOptions = "X-Frame-Options"
X-Frame-Options
Click-jacking protection:
- deny - no rendering within a frame
- sameorigin - no rendering if origin mismatch
- allow-from - allow from specified location,
- allowall - non-standard, allow from any location
Class: Response field, Standard, Obsolete
Example:
X-Frame-Options: deny
const XHttpMethodOverride = "X-Http-Method-Override"
X-Http-Method-Override
Requests a web application to override the method specified in the request (typically POST) with the method given in the header field (typically PUT or DELETE). This can be used when a user agent or firewall prevents PUT or DELETE methods from being sent directly (note that this is either a bug in the software component, which ought to be fixed, or an intentional configuration, in which case bypassing it may be the wrong thing to do).
Class: Request field, Non-standard
Example:
X-HTTP-Method-Override: DELETE
const XPoweredBy = "X-Powered-By"
X-Powered-By
Specifies the technology (e.g. ASP.NET, PHP, JBoss) supporting the web application (version details are often in X-Runtime, X-Version, or X-AspNet-Version).
Class: Response field, Non-standard
Example:
X-Powered-By: PHP/5.4.0
const XRedirectBy = "X-Redirect-By"
X-Redirect-By
Specifies the component that is responsible for a particular redirect.
Class: Response field, Non-standard
Example:
X-Redirect-By: WordPress X-Redirect-By: PolyLang
const XRequestID = "X-Request-ID"
X-Request-ID
Correlates HTTP requests between a client and server.
Class: Request field, Response field, Non-standard
Example:
X-Request-ID: f058ebd6-02f7-4d3f-942e-904344e8cde5
const XRequestedWith = "X-Requested-With"
X-Requested-With
Mainly used to identify Ajax requests (most JavaScript frameworks send this field with value of XMLHttpRequest); also identifies Android apps using WebView
Class: Request field, Non-standard
Example:
X-Requested-With: XMLHttpRequest
const XUACompatible = "X-UA-Compatible"
X-UA-Compatible
Recommends the preferred rendering engine (often a backward-compatibility mode) to use to display the content. Also used to activate Chrome Frame in Internet Explorer. In HTML Standard, only the IE=edge value is defined.
Class: Response field, Non-standard
Example:
X-UA-Compatible: IE=edge X-UA-Compatible: IE=EmulateIE7 X-UA-Compatible: Chrome=1
const XUIDH = "X-UIDH"
X-UIDH
Server-side deep packet insertion of a unique ID identifying customers of Verizon Wireless; also known as "perma-cookie" or "supercookie"
Class: Request field, Non-standard
Example:
X-UIDH: ...
const XWapProfile = "X-Wap-Profile"
X-Wap-Profile
Links to an XML file on the Internet with a full description and details about the device currently connecting. In the example to the right is an XML file for an AT&T Samsung Galaxy S2.
Class: Request field, Non-standard
Example:
X-Wap-Profile: http://wap.samsungmobile.com/uaprof/SGH-I777.xml
const XWebKitCSP = "X-WebKit-CSP"
X-WebKit-CSP
Class: Response field, Non-standard
Example:
const XXssProtection = "X-XSS-Protection"
X-XSS-Protection
Cross-site scripting (XSS) filter.
Class: Response field, Non-standard
Example:
X-XSS-Protection: 1; mode=block
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.