package Default

 Methods

Assert a header value is valid.

assertValid(string $value) : void
Static

Parameters

$value

string

Exceptions

\Zend\Http\Header\Exception\RuntimeException for invalid values

Filter a header value

filter(string $value) : string
Static

Ensures CRLF header injection vectors are filtered.

Per RFC 7230, only VISIBLE ASCII characters, spaces, and horizontal tabs are allowed in values; only one whitespace character is allowed between visible characters.

see

Parameters

$value

string

Returns

string

Validate a header value.

isValid(string $value) : boolean
Static

Per RFC 7230, only VISIBLE ASCII characters, spaces, and horizontal tabs are allowed in values; only one whitespace character is allowed between visible characters.

see

Parameters

$value

string

Returns

boolean

Private constructor; non-instantiable.

__construct()