Aplus Framework Docs

ResponseHeader
in package
uses HeaderTrait

Class ResponseHeader.

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

Table of Contents

Constants

ACCEPT_RANGES  : string = 'Accept-Ranges'
ACCESS_CONTROL_ALLOW_CREDENTIALS  : string = 'Access-Control-Allow-Credentials'
ACCESS_CONTROL_ALLOW_HEADERS  : string = 'Access-Control-Allow-Headers'
ACCESS_CONTROL_ALLOW_METHODS  : string = 'Access-Control-Allow-Methods'
ACCESS_CONTROL_ALLOW_ORIGIN  : string = 'Access-Control-Allow-Origin'
ACCESS_CONTROL_EXPOSE_HEADERS  : string = 'Access-Control-Expose-Headers'
ACCESS_CONTROL_MAX_AGE  : string = 'Access-Control-Max-Age'
AGE  : string = 'Age'
ALLOW  : string = 'Allow'
CACHE_CONTROL  : string = 'Cache-Control'
CLEAR_SITE_DATA  : string = 'Clear-Site-Data'
CONNECTION  : string = 'Connection'
CONTENT_DISPOSITION  : string = 'Content-Disposition'
CONTENT_ENCODING  : string = 'Content-Encoding'
CONTENT_LANGUAGE  : string = 'Content-Language'
CONTENT_LENGTH  : string = 'Content-Length'
CONTENT_LOCATION  : string = 'Content-Location'
CONTENT_RANGE  : string = 'Content-Range'
CONTENT_SECURITY_POLICY  : string = 'Content-Security-Policy'
CONTENT_SECURITY_POLICY_REPORT_ONLY  : string = 'Content-Security-Policy-Report-Only'
CONTENT_TYPE  : string = 'Content-Type'
DATE  : string = 'Date'
ETAG  : string = 'ETag'
EXPECT_CT  : string = 'Expect-CT'
EXPIRES  : string = 'Expires'
FEATURE_POLICY  : string = 'Feature-Policy'
KEEP_ALIVE  : string = 'Keep-Alive'
LAST_MODIFIED  : string = 'Last-Modified'
LINK  : string = 'Link'
LOCATION  : string = 'Location'
PRAGMA  : string = 'Pragma'
PROXY_AUTHENTICATE  : string = 'Proxy-Authenticate'
PUBLIC_KEY_PINS  : string = 'Public-Key-Pins'
PUBLIC_KEY_PINS_REPORT_ONLY  : string = 'Public-Key-Pins-Report-Only'
REFERRER_POLICY  : string = 'Referrer-Policy'
RETRY_AFTER  : string = 'Retry-After'
SERVER  : string = 'Server'
SET_COOKIE  : string = 'Set-Cookie'
SOURCEMAP  : string = 'SourceMap'
STRICT_TRANSPORT_SECURITY  : string = 'Strict-Transport-Security'
TIMING_ALLOW_ORIGIN  : string = 'Timing-Allow-Origin'
TK  : string = 'Tk'
TRAILER  : string = 'Trailer'
TRANSFER_ENCODING  : string = 'Transfer-Encoding'
UPGRADE  : string = 'Upgrade'
VARY  : string = 'Vary'
VIA  : string = 'Via'
WARNING  : string = 'Warning'
WWW_AUTHENTICATE  : string = 'WWW-Authenticate'
X_CONTENT_TYPE_OPTIONS  : string = 'X-Content-Type-Options'
X_DNS_PREFETCH_CONTROL  : string = 'X-DNS-Prefetch-Control'
X_FRAME_OPTIONS  : string = 'X-Frame-Options'
X_POWERED_BY  : string = 'X-Powered-By'
X_REQUEST_ID  : string = 'X-Request-ID'
X_ROBOTS_TAG  : string = 'X-Robots-Tag'
X_XSS_PROTECTION  : string = 'X-XSS-Protection'

Properties

$headers  : array<string, string>
Header names.

Methods

getMultilines()  : array<string|int, string>
getName()  : string
isMultiline()  : bool
setName()  : void

Constants

Properties

$headers

Header names.

protected static array<string, string> $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', 'cdn-loop' => 'CDN-Loop', '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', 'priority' => 'Priority', '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-robots-tag' => 'X-Robots-Tag', '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

        
On this page

Search results