Serializable
The http\Header class provides methods to manipulate, match, negotiate and serialize HTTP headers.
string
.string
(same as MATCH_CASE|MATCH_FULL).string
$name# = NULL
mixed
$value# = NULL
Create an http\Header instance for use of simple matching or negotiation. If the value of the header is an array
it may be compounded to a single comma separated string
.
void
http\Header::__construct([string
$name[, mixed
$value]])
String cast handler. Alias of http\Header::serialize().
Create a parameter list out of the HTTP header value.
http\Params http\Header::getParams([mixed
$ps = ","[, mixed
$as = ";"[, mixed
$vs = "="[, int
$flags = http\Params::PARSE_DEFAULT]]]])
Match the HTTP header's value against provided $value according to $flags.
bool
http\Header::match(string
$value[, int
$flags = http\Header::MATCH_LOOSE])
Negotiate the header's value against a list of supported values in $supported.
string
http\Header::negotiate(array
$supported[, array
&$result])
Parse HTTP headers.
static array
http\Header::parse(string
$header[, string
$header_class = NULL
])
Implements Serializable
.
Convenience method. Alias of http\Header::serialize().
Implements Serializable
.
void
http\Header::unserialize(string
$serialized)
The parser which is underlying http\Header and http\Message.
class http\Header\Parser