headers

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 0 Imported by: 1

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

View Source
const AIM = "A-IM"

A-IM

Acceptable instance-manipulations for the request.

Class: Request field, Standard, Permanent

Example:

A-IM: feed

Standard:

View Source
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:

View Source
const AcceptCH = "Accept-CH"

Accept-CH

Requests HTTP Client Hints.

Class: Response field, Standard, Experimental

Example:

Accept-CH: UA, Platform

Standard:

View Source
const AcceptCharset = "Accept-Charset"

Accept-Charset

Character sets that are acceptable.

Class: Request field, Standard, Permanent

Example:

Accept-Charset: utf-8

Standard:

View Source
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:

View Source
const AcceptEncoding = "Accept-Encoding"

Accept-Encoding

List of acceptable encodings. See HTTP compression.

Class: Request field, Standard, Permanent

Example:

Accept-Encoding: gzip, deflate

Standard:

View Source
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:

View Source
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:

View Source
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:

View Source
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:

View Source
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:

View Source
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:

View Source
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:

View Source
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:

View Source
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:

View Source
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
View Source
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
View Source
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:

View Source
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:

View Source
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
View Source
const Authorization = "Authorization"

Authorization

Authentication credentials for HTTP authentication.

Class: Request field, Standard, Permanent

Example:

Authorization: Basic QWxhZGRpbApVcGVuIHNlc2FtZQ==

Standard:

View Source
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:

View Source
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:

View Source
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:

View Source
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:

View Source
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:

View Source
const ContentLocation = "Content-Location"

Content-Location

An alternate location for the returned data.

Class: Response field, Standard, Permanent

Example:

Content-Location: /index.htm

Standard:

View Source
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:

View Source
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:

View Source
const ContentSecurityPolicy = "Content-Security-Policy"

Content-Security-Policy

Content Security Policy definition.

Class: Response field, Non-standard

Example:

X-WebKit-CSP: default-src 'self'
View Source
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:

View Source
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:

View Source
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
View Source
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)
View Source
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:

View Source
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:

View Source
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:

View Source
const Expect = "Expect"

Expect

Indicates that particular server behaviors are required by the client.

Class: Request field, Standard, Permanent

Example:

Expect: 100-continue

Standard:

View Source
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"
View Source
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:

View Source
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:

View Source
const From = "From"

From

The email address of the user making the request.

Class: Request field, Standard, Permanent

Example:

From: user@example.com

Standard:

View Source
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
View Source
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
View Source
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
View Source
const IM = "IM"

IM

Instance-manipulations applied to the response.

Class: Response field, Standard, Permanent

Example:

IM: feed

Standard:

View Source
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:

View Source
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:

View Source
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:

View Source
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:

View Source
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:

View Source
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:

View Source
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:

View Source
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:

View Source
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:

View Source
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}
View Source
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:

View Source
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."
View Source
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=()
View Source
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:

View Source
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:

View Source
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:

View Source
const ProxyAuthenticate = "Proxy-Authenticate"

Proxy-Authenticate

Request authentication to access the proxy.

Class: Response field, Standard, Permanent

Example:

Proxy-Authenticate: Basic

Standard:

View Source
const ProxyAuthorization = "Proxy-Authorization"

Proxy-Authorization

Authorization credentials for connecting to a proxy.

Class: Request field, Standard, Permanent

Example:

Proxy-Authorization: Basic QWxhZGRpbJpVcGVuIHNlc2FtZQ==

Standard:

View Source
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
View Source
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:

View Source
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:

View Source
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:

View Source
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
View Source
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"}]}
View Source
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:

View Source
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
View Source
const Server = "Server"

Server

A name for the server.

Class: Response field, Standard, Permanent

Example:

Server: Apache/2.4.1 (Unix)

Standard:

View Source
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:

View Source
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
View Source
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
View Source
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:

View Source
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>]*
View Source
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: ?
View Source
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:

View Source
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:

View Source
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:

View Source
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
View Source
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:

View Source
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:

View Source
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:

View Source
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:

View Source
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:

View Source
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
View Source
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
View Source
const XContentSecurityPolicy = "X-Content-Security-Policy"

X-Content-Security-Policy

Class: Response field, Non-standard

Example:

View Source
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
View Source
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
View Source
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
View Source
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
View Source
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
View Source
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
View Source
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
View Source
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
View Source
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
View Source
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
View Source
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
View Source
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
View Source
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
View Source
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: ...
View Source
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
View Source
const XWebKitCSP = "X-WebKit-CSP"

X-WebKit-CSP

Class: Response field, Non-standard

Example:

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL