Oihana PHP Enums

RequestContextHeaderTrait

Request context HTTP header names (client identity and intent).

Mixed into HttpHeader.

Tags
author

Marc Alcaraz (ekameleon)

since
1.1.0

Table of Contents

Constants

DNT  : string = 'DNT'
`DNT` — Legacy "Do Not Track" preference (deprecated).
ORIGIN  : string = 'Origin'
`Origin` — Origin that caused the request, sent for CORS and POST (RFC 9110 §7.8 / Fetch).
REFERER  : string = 'Referer'
`Referer` — Address of the page from which the request was made (RFC 9110 §10.1.3).
UPGRADE_INSECURE_REQUESTS  : string = 'Upgrade-Insecure-Requests'
`Upgrade-Insecure-Requests` — Signals the client's preference for an encrypted response.
USER_AGENT  : string = 'User-Agent'
`User-Agent` — Product tokens identifying the client software (RFC 9110 §10.1.5).
X_REQUESTED_WITH  : string = 'X-Requested-With'
`X-Requested-With` — De-facto AJAX marker, usually `XMLHttpRequest`.

Constants

ORIGIN

`Origin` — Origin that caused the request, sent for CORS and POST (RFC 9110 §7.8 / Fetch).

public string ORIGIN = 'Origin'

REFERER

`Referer` — Address of the page from which the request was made (RFC 9110 §10.1.3).

public string REFERER = 'Referer'

UPGRADE_INSECURE_REQUESTS

`Upgrade-Insecure-Requests` — Signals the client's preference for an encrypted response.

public string UPGRADE_INSECURE_REQUESTS = 'Upgrade-Insecure-Requests'

USER_AGENT

`User-Agent` — Product tokens identifying the client software (RFC 9110 §10.1.5).

public string USER_AGENT = 'User-Agent'

X_REQUESTED_WITH

`X-Requested-With` — De-facto AJAX marker, usually `XMLHttpRequest`.

public string X_REQUESTED_WITH = 'X-Requested-With'
On this page

Search results