Aplus Framework Docs

Header
in package

Class Header.

Tags
see
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers

Table of Contents

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'
DATE  = 'Date'
KEEP_ALIVE  = 'Keep-Alive'
LINK  = 'Link'
PRAGMA  = 'Pragma'
TRAILER  = 'Trailer'
TRANSFER_ENCODING  = 'Transfer-Encoding'
UPGRADE  = 'Upgrade'
VIA  = 'Via'
WARNING  = 'Warning'
X_REQUEST_ID  = 'X-Request-ID'
$headers  : array<string|int, mixed>
Header names.
getMultilines()  : array<string|int, string>
getName()  : string
isMultiline()  : bool
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

setName()

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

Search results