0 follower

Final Class Yiisoft\Http\Header

InheritanceYiisoft\Http\Header

HTTP headers

Constants

Hide inherited constants

Constant Value Description Defined By
ACCEPT 'Accept' Informs the server about the types of data that can be sent back. Yiisoft\Http\Header
ACCEPT_CHARSET 'Accept-Charset' Which character encodings the client understands. Yiisoft\Http\Header
ACCEPT_ENCODING 'Accept-Encoding' The encoding algorithm, usually a compression algorithm, that can be used on the resource sent back. Yiisoft\Http\Header
ACCEPT_LANGUAGE 'Accept-Language' Informs the server about the human language the server is expected to send back. This is a hint and is not necessarily under the full control of the user: the server should always pay attention not to override an explicit user choice (like selecting a language from a dropdown). Yiisoft\Http\Header
ACCEPT_RANGES 'Accept-Ranges' Indicates if the server supports range requests, and if so in which unit the range can be expressed. Yiisoft\Http\Header
ACCESS_CONTROL_ALLOW_CREDENTIALS 'Access-Control-Allow-Credentials' Indicates whether the response to the request can be exposed when the credentials flag is true. Yiisoft\Http\Header
ACCESS_CONTROL_ALLOW_HEADERS 'Access-Control-Allow-Headers' Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request. Yiisoft\Http\Header
ACCESS_CONTROL_ALLOW_METHODS 'Access-Control-Allow-Methods' Specifies the methods allowed when accessing the resource in response to a preflight request. Yiisoft\Http\Header
ACCESS_CONTROL_ALLOW_ORIGIN 'Access-Control-Allow-Origin' Indicates whether the response can be shared. Yiisoft\Http\Header
ACCESS_CONTROL_EXPOSE_HEADERS 'Access-Control-Expose-Headers' Indicates which headers can be exposed as part of the response by listing their names. Yiisoft\Http\Header
ACCESS_CONTROL_MAX_AGE 'Access-Control-Max-Age' Indicates how long the results of a preflight request can be cached. Yiisoft\Http\Header
ACCESS_CONTROL_REQUEST_HEADERS 'Access-Control-Request-Headers' Used when issuing a preflight request to let the server know which HTTP headers will be used when the actual request is made. Yiisoft\Http\Header
ACCESS_CONTROL_REQUEST_METHOD 'Access-Control-Request-Method' Used when issuing a preflight request to let the server know which HTTP method will be used when the actual request is made. Yiisoft\Http\Header
AGE 'Age' The time, in seconds, that the object has been in a proxy cache. Yiisoft\Http\Header
ALLOW 'Allow' Lists the set of HTTP request methods supported by a resource. Yiisoft\Http\Header
ALT_SVC 'Alt-Svc' Used to list alternate ways to reach this service. Yiisoft\Http\Header
AUTHORIZATION 'Authorization' Contains the credentials to authenticate a user-agent with a server. Yiisoft\Http\Header
CACHE_CONTROL 'Cache-Control' Directives for caching mechanisms in both requests and responses. Yiisoft\Http\Header
CLEAR_SITE_DATA 'Clear-Site-Data' Clears browsing data (e.g. cookies, storage, cache) associated with the requesting website. Yiisoft\Http\Header
CONNECTION 'Connection' Controls whether the network connection stays open after the current transaction finishes. Yiisoft\Http\Header
CONTENT_DISPOSITION 'Content-Disposition' Indicates if the resource transmitted should be displayed inline (default behavior without the header), or if it should be handled like a download and the browser should present a “Save As” dialog. Yiisoft\Http\Header
CONTENT_ENCODING 'Content-Encoding' Used to specify the compression algorithm. Yiisoft\Http\Header
CONTENT_LANGUAGE 'Content-Language' Describes the human language(s) intended for the audience, so that it allows a user to differentiate according to the users' own preferred language. Yiisoft\Http\Header
CONTENT_LENGTH 'Content-Length' The size of the resource, in decimal number of bytes. Yiisoft\Http\Header
CONTENT_LOCATION 'Content-Location' Indicates an alternate location for the returned data. Yiisoft\Http\Header
CONTENT_RANGE 'Content-Range' Indicates where in a full body message a partial message belongs. Yiisoft\Http\Header
CONTENT_SECURITY_POLICY 'Content-Security-Policy' Controls resources the user agent is allowed to load for a given page. Yiisoft\Http\Header
CONTENT_SECURITY_POLICY_REPORT_ONLY 'Content-Security-Policy-Report-Only' Allows web developers to experiment with policies by monitoring, but not enforcing, their effects. These violation reports consist of JSON documents sent via an HTTP POST request to the specified URI. Yiisoft\Http\Header
CONTENT_TYPE 'Content-Type' Indicates the media type of the resource. Yiisoft\Http\Header
CROSS_ORIGIN_EMBEDDER_POLICY 'Cross-Origin-Embedder-Policy' Allows a server to declare an embedder policy for a given document. Yiisoft\Http\Header
CROSS_ORIGIN_OPENER_POLICY 'Cross-Origin-Opener-Policy' Prevents other domains from opening/controlling a window. Yiisoft\Http\Header
CROSS_ORIGIN_RESOURCE_POLICY 'Cross-Origin-Resource-Policy' Prevents other domains from reading the response of the resources to which this header is applied. Yiisoft\Http\Header
DATE 'Date' Contains the date and time at which the message was originated. Yiisoft\Http\Header
DNT 'DNT' Expresses the user's tracking preference. Yiisoft\Http\Header
ETAG 'ETag' A unique string identifying the version of the resource. Conditional requests using If-Match and If-None-Match use this value to change the behavior of the request. Yiisoft\Http\Header
EXPECT 'Expect' Indicates expectations that need to be fulfilled by the server to properly handle the request. Yiisoft\Http\Header
EXPECT_CT 'Expect-CT' Allows sites to opt in to reporting and/or enforcement of Certificate Transparency requirements, which prevents the use of misissued certificates for that site from going unnoticed. When a site enables the Expect-CT header, they are requesting that Chrome check that any certificate for that site appears in public CT logs. Yiisoft\Http\Header
EXPIRES 'Expires' The date/time after which the response is considered stale. Yiisoft\Http\Header
FEATURE_POLICY 'Feature-Policy' Provides a mechanism to allow and deny the use of browser features in its own frame, and in iframes that it embeds. Yiisoft\Http\Header
FORWARDED 'Forwarded' Contains information from the client-facing side of proxy servers that is altered or lost when a proxy is involved in the path of the request. Yiisoft\Http\Header
FROM 'From' Contains an Internet email address for a human user who controls the requesting user agent. Yiisoft\Http\Header
HOST 'Host' Specifies the domain name of the server (for virtual hosting), and (optionally) the TCP port number on which the server is listening. Yiisoft\Http\Header
IF_MATCH 'If-Match' Makes the request conditional, and applies the method only if the stored resource matches one of the given ETags. Yiisoft\Http\Header
IF_MODIFIED_SINCE 'If-Modified-Since' Makes the request conditional, and expects the entity to be transmitted only if it has been modified after the given date. This is used to transmit data only when the cache is out of date. Yiisoft\Http\Header
IF_NONE_MATCH 'If-None-Match' Makes the request conditional, and applies the method only if the stored resource doesn't match any of the given ETags. This is used to update caches (for safe requests), or to prevent to upload a new resource when one already exists. Yiisoft\Http\Header
IF_RANGE 'If-Range' Creates a conditional range request that is only fulfilled if the given etag or date matches the remote resource. Used to prevent downloading two ranges from incompatible version of the resource. Yiisoft\Http\Header
IF_UNMODIFIED_SINCE 'If-Unmodified-Since' Makes the request conditional, and expects the entity to be transmitted only if it has not been modified after the given date. This ensures the coherence of a new fragment of a specific range with previous ones, or to implement an optimistic concurrency control system when modifying existing documents. Yiisoft\Http\Header
KEEP_ALIVE 'Keep-Alive' Controls how long a persistent connection should stay open. Yiisoft\Http\Header
LARGE_ALLOCATION 'Large-Allocation' Tells the browser that the page being loaded is going to want to perform a large allocation. Yiisoft\Http\Header
LAST_MODIFIED 'Last-Modified' The last modification date of the resource, used to compare several versions of the same resource. It is less accurate than ETag, but easier to calculate in some environments. Conditional requests using If-Modified-Since and If-Unmodified-Since use this value to change the behavior of the request. Yiisoft\Http\Header
LOCATION 'Location' Indicates the URL to redirect a page to. Yiisoft\Http\Header
MAX_FORWARDS 'Max-Forwards' Limit the number of times the message can be forwarded through proxies or gateways. Yiisoft\Http\Header
ORIGIN 'Origin' Indicates where a fetch originates from. Yiisoft\Http\Header
PRAGMA 'Pragma' Implementation-specific header that may have various effects anywhere along the request-response chain. Used for backwards compatibility with HTTP/1.0 caches where the Cache-Control header is not yet present. Yiisoft\Http\Header
PROXY_AUTHENTICATE 'Proxy-Authenticate' Defines the authentication method that should be used to access a resource behind a proxy server. Yiisoft\Http\Header
PROXY_AUTHORIZATION 'Proxy-Authorization' Contains the credentials to authenticate a user agent with a proxy server. Yiisoft\Http\Header
RANGE 'Range' Indicates the part of a document that the server should return. Yiisoft\Http\Header
REFERER 'Referer' The address of the previous web page from which a link to the currently requested page was followed. Yiisoft\Http\Header
REFERRER_POLICY 'Referrer-Policy' Governs which referrer information sent in the Referer header should be included with requests made. Yiisoft\Http\Header
RETRY_AFTER 'Retry-After' Indicates how long the user agent should wait before making a follow-up request. Yiisoft\Http\Header
SEC_FETCH_DEST 'Sec-Fetch-Dest' It is a request header that indicates the request's destination to a server. It is a Structured Header whose value is a token with possible values audio, audioworklet, document, embed, empty, font, image, manifest, object, paintworklet, report, script, serviceworker, sharedworker, style, track, video, worker, xslt, and nested-document. Yiisoft\Http\Header
SEC_FETCH_MODE 'Sec-Fetch-Mode' It is a request header that indicates the request's mode to a server. It is a Structured Header whose value is a token with possible values cors, navigate, nested-navigate, no-cors, same-origin, and websocket. Yiisoft\Http\Header
SEC_FETCH_SITE 'Sec-Fetch-Site' It is a request header that indicates the relationship between a request initiator's origin and its target's origin. It is a Structured Header whose value is a token with possible values cross-site, same-origin, same-site, and none. Yiisoft\Http\Header
SEC_FETCH_USER 'Sec-Fetch-User' It is a request header that indicates whether or not a navigation request was triggered by user activation. It is a Structured Header whose value is a boolean so possible values are ?0 for false and ?1 for true. Yiisoft\Http\Header
SEC_WEBSOCKET_ACCEPT 'Sec-WebSocket-Accept' Yiisoft\Http\Header
SEC_WEBSOCKET_EXTENSIONS 'Sec-WebSocket-Extensions' Yiisoft\Http\Header
SEC_WEBSOCKET_KEY 'Sec-WebSocket-Key' Yiisoft\Http\Header
SEC_WEBSOCKET_PROTOCOL 'Sec-WebSocket-Protocol' Yiisoft\Http\Header
SEC_WEBSOCKET_VERSION 'Sec-WebSocket-Version' Yiisoft\Http\Header
SERVER 'Server' Contains information about the software used by the origin server to handle the request. Yiisoft\Http\Header
SERVER_TIMING 'Server-Timing' Communicates one or more metrics and descriptions for the given request-response cycle. Yiisoft\Http\Header
SERVICE_WORKER_ALLOWED 'Service-Worker-Allowed' Used to remove the path restriction by including this header in the response of the Service Worker script. Yiisoft\Http\Header
SOURCEMAP 'SourceMap' Links generated code to a source map. Yiisoft\Http\Header
STRICT_TRANSPORT_SECURITY 'Strict-Transport-Security' Force communication using HTTPS instead of HTTP. Yiisoft\Http\Header
TE 'TE' Specifies the transfer encodings the user agent is willing to accept. Yiisoft\Http\Header
TIMING_ALLOW_ORIGIN 'Timing-Allow-Origin' 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. Yiisoft\Http\Header
TK 'TK' Indicates the tracking status of the corresponding response. Yiisoft\Http\Header
TRAILER 'Trailer' Allows the sender to include additional fields at the end of chunked message. Yiisoft\Http\Header
TRANSFER_ENCODING 'Transfer-Encoding' Specifies the form of encoding used to safely transfer the entity to the user. Yiisoft\Http\Header
UPGRADE 'Upgrade' Establishes rules for upgrading or changing to a different protocol on the current client, server, transport protocol connection. Yiisoft\Http\Header
UPGRADE_INSECURE_REQUESTS 'Upgrade-Insecure-Requests' Sends a signal to the server expressing the client’s preference for an encrypted and authenticated response, and that it can successfully handle the upgrade-insecure-requests directive. Yiisoft\Http\Header
USER_AGENT 'User-Agent' Contains a characteristic string that allows the network protocol peers to identify the application type, operating system, software vendor or software version of the requesting software user agent. Yiisoft\Http\Header
VARY 'Vary' Determines how to match request headers to decide whether a cached response can be used rather than requesting a fresh one from the origin server. Yiisoft\Http\Header
VIA 'Via' Added by proxies, both forward and reverse proxies, and can appear in the request headers and the response headers. Yiisoft\Http\Header
WARNING 'Warning' General warning information about possible problems. Yiisoft\Http\Header
WWW_AUTHENTICATE 'WWW-Authenticate' Defines the authentication method that should be used to access a resource. Yiisoft\Http\Header
X_CONTENT_TYPE_OPTIONS 'X-Content-Type-Options' Disables MIME sniffing and forces browser to use the type given in Content-Type. Yiisoft\Http\Header
X_DNS_PREFETCH_CONTROL 'X-DNS-Prefetch-Control' Controls DNS prefetching, a feature by which browsers proactively perform domain name resolution on both links that the user may choose to follow as well as URLs for items referenced by the document, including images, CSS, JavaScript, and so forth. Yiisoft\Http\Header
X_FRAME_OPTIONS 'X-Frame-Options' Indicates whether a browser should be allowed to render a page in a ,