category Zend
package Zend_Http
subpackage Header
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Assert a header value is valid.

assertValid(string $value) : void
Static

Parameters

$value

string

Exceptions

\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()