Aplus Framework Docs

RequestHeader extends Header
in package

Class RequestHeader.

Tags
see
https://developer.mozilla.org/en-US/docs/Glossary/Request_header

Table of Contents

ACCEPT  = 'Accept'
ACCEPT_CHARSET  = 'Accept-Charset'
ACCEPT_ENCODING  = 'Accept-Encoding'
ACCEPT_LANGUAGE  = 'Accept-Language'
ACCESS_CONTROL_REQUEST_HEADERS  = 'Access-Control-Request-Headers'
ACCESS_CONTROL_REQUEST_METHOD  = 'Access-Control-Request-Method'
AUTHORIZATION  = 'Authorization'
CACHE_CONTROL  = 'Cache-Control'
CONNECTION  = 'Connection'
CONTENT_DISPOSITION  = 'Content-Disposition'
CONTENT_ENCODING  = 'Content-Encoding'
CONTENT_LANGUAGE  = 'Content-Language'
CONTENT_LENGTH  = 'Content-Length'
CONTENT_LOCATION  = 'Content-Location'
CONTENT_RANGE  = 'Content-Range'
CONTENT_TYPE  = 'Content-Type'
COOKIE  = 'Cookie'
DATE  = 'Date'
DNT  = 'DNT'
EXPECT  = 'Expect'
FORWARDED  = 'Forwarded'
FROM  = 'From'
HOST  = 'Host'
IF_MATCH  = 'If-Match'
IF_MODIFIED_SINCE  = 'If-Modified-Since'
IF_NONE_MATCH  = 'If-None-Match'
IF_RANGE  = 'If-Range'
IF_UNMODIFIED_SINCE  = 'If-Unmodified-Since'
KEEP_ALIVE  = 'Keep-Alive'
LINK  = 'Link'
ORIGIN  = 'Origin'
PRAGMA  = 'Pragma'
PROXY_AUTHORIZATION  = 'Proxy-Authorization'
RANGE  = 'Range'
REFERER  = 'Referer'
SEC_FETCH_DEST  = 'Sec-Fetch-Dest'
SEC_FETCH_MODE  = 'Sec-Fetch-Mode'
SEC_FETCH_SITE  = 'Sec-Fetch-Site'
SEC_FETCH_USER  = 'Sec-Fetch-User'
TE  = 'TE'
TRAILER  = 'Trailer'
TRANSFER_ENCODING  = 'Transfer-Encoding'
UPGRADE  = 'Upgrade'
UPGRADE_INSECURE_REQUESTS  = 'Upgrade-Insecure-Requests'
USER_AGENT  = 'User-Agent'
VIA  = 'Via'
WARNING  = 'Warning'
X_FORWARDED_FOR  = 'X-Forwarded-For'
X_FORWARDED_HOST  = 'X-Forwarded-Host'
X_FORWARDED_PROTO  = 'X-Forwarded-Proto'
X_REAL_IP  = 'X-Real-IP'
X_REQUEST_ID  = 'X-Request-ID'
X_REQUESTED_WITH  = 'X-Requested-With'
$headers  : array<string|int, mixed>
Header names.
getMultilines()  : array<string|int, string>
getName()  : string
isMultiline()  : bool
parseInput()  : array<string, string>
setName()  : void

Constants

Properties

$headers

Header names.

protected static array<string|int, mixed> $headers = [ // --------------------------------------------------------------------- // General headers (Request and Response) // --------------------------------------------------------------------- 'cache-control' => 'Cache-Control', 'connection' => 'Connection', 'content-disposition' => 'Content-Disposition', 'date' => 'Date', 'keep-alive' => 'Keep-Alive', 'link' => 'Link', 'pragma' => 'Pragma', 'via' => 'Via', 'warning' => 'Warning', // --------------------------------------------------------------------- // Representation headers (Request and Response) // --------------------------------------------------------------------- 'content-encoding' => 'Content-Encoding', 'content-language' => 'Content-Language', 'content-location' => 'Content-Location', 'content-type' => 'Content-Type', // --------------------------------------------------------------------- // Payload headers (Request and Response) // --------------------------------------------------------------------- 'content-length' => 'Content-Length', 'content-range' => 'Content-Range', 'trailer' => 'Trailer', 'transfer-encoding' => 'Transfer-Encoding', // --------------------------------------------------------------------- // Request headers // --------------------------------------------------------------------- 'accept' => 'Accept', 'accept-charset' => 'Accept-Charset', 'accept-encoding' => 'Accept-Encoding', 'accept-language' => 'Accept-Language', 'access-control-request-headers' => 'Access-Control-Request-Headers', 'access-control-request-method' => 'Access-Control-Request-Method', 'authorization' => 'Authorization', 'cookie' => 'Cookie', 'dnt' => 'DNT', 'expect' => 'Expect', 'forwarded' => 'Forwarded', 'from' => 'From', 'host' => 'Host', 'if-match' => 'If-Match', 'if-modified-since' => 'If-Modified-Since', 'if-none-match' => 'If-None-Match', 'if-range' => 'If-Range', 'if-unmodified-since' => 'If-Unmodified-Since', 'origin' => 'Origin', 'proxy-authorization' => 'Proxy-Authorization', 'range' => 'Range', 'referer' => 'Referer', 'sec-fetch-dest' => 'Sec-Fetch-Dest', 'sec-fetch-mode' => 'Sec-Fetch-Mode', 'sec-fetch-site' => 'Sec-Fetch-Site', 'sec-fetch-user' => 'Sec-Fetch-User', 'te' => 'TE', 'upgrade-insecure-requests' => 'Upgrade-Insecure-Requests', 'user-agent' => 'User-Agent', 'x-forwarded-for' => 'X-Forwarded-For', 'x-forwarded-host' => 'X-Forwarded-Host', 'x-forwarded-proto' => 'X-Forwarded-Proto', 'x-real-ip' => 'X-Real-IP', 'x-requested-with' => 'X-Requested-With', // --------------------------------------------------------------------- // Response headers // --------------------------------------------------------------------- 'accept-ranges' => 'Accept-Ranges', 'access-control-allow-credentials' => 'Access-Control-Allow-Credentials', 'access-control-allow-headers' => 'Access-Control-Allow-Headers', 'access-control-allow-methods' => 'Access-Control-Allow-Methods', 'access-control-allow-origin' => 'Access-Control-Allow-Origin', 'access-control-expose-headers' => 'Access-Control-Expose-Headers', 'access-control-max-age' => 'Access-Control-Max-Age', 'age' => 'Age', 'allow' => 'Allow', 'clear-site-data' => 'Clear-Site-Data', 'content-security-policy' => 'Content-Security-Policy', 'content-security-policy-report-only' => 'Content-Security-Policy-Report-Only', 'etag' => 'ETag', 'expect-ct' => 'Expect-CT', 'expires' => 'Expires', 'feature-policy' => 'Feature-Policy', 'last-modified' => 'Last-Modified', 'location' => 'Location', 'proxy-authenticate' => 'Proxy-Authenticate', 'public-key-pins' => 'Public-Key-Pins', 'public-key-pins-report-only' => 'Public-Key-Pins-Report-Only', 'referrer-policy' => 'Referrer-Policy', 'retry-after' => 'Retry-After', 'server' => 'Server', 'set-cookie' => 'Set-Cookie', 'sourcemap' => 'SourceMap', 'strict-transport-security' => 'Strict-Transport-Security', 'timing-allow-origin' => 'Timing-Allow-Origin', 'tk' => 'Tk', 'vary' => 'Vary', 'www-authenticate' => 'WWW-Authenticate', 'x-content-type-options' => 'X-Content-Type-Options', 'x-dns-prefetch-control' => 'X-DNS-Prefetch-Control', 'x-frame-options' => 'X-Frame-Options', 'x-xss-protection' => 'X-XSS-Protection', // --------------------------------------------------------------------- // Custom (Response) // --------------------------------------------------------------------- 'x-request-id' => 'X-Request-ID', 'x-powered-by' => 'X-Powered-By', // --------------------------------------------------------------------- // WebSocket // --------------------------------------------------------------------- 'sec-websocket-extensions' => 'Sec-WebSocket-Extensions', 'sec-websocket-key' => 'Sec-WebSocket-Key', 'sec-websocket-protocol' => 'Sec-WebSocket-Protocol', 'sec-websocket-version' => 'Sec-WebSocket-Version', ]
Tags
see
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers

Methods

getMultilines()

public static getMultilines() : array<string|int, string>
Return values
array<string|int, string>

getName()

public static getName(string $name) : string
Parameters
$name : string
Return values
string

isMultiline()

public static isMultiline(string $name) : bool
Parameters
$name : string
Return values
bool

parseInput()

public static parseInput(array<string, scalar> $input) : array<string, string>
Parameters
$input : array<string, scalar>
Return values
array<string, string>

setName()

public static setName(string $name) : void
Parameters
$name : string
Return values
void

Search results