__construct()
fromString()
getCharset()
getFieldName()
getFieldValue()
getMediaType()
getParameters()
match()
setCharset()
setMediaType()
setParameters()
toString()
assembleValue()
getMediaTypeObjectFromString()
splitMediaTypesFromString()
validateFormat()
validatePartialWildcard()
validateSubtype()
$mediaType
$parameters
$value
\Zend\Http\Header\Exception\InvalidArgumentException |
|
---|---|
see | \Zend\Http\Header\http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17 |
__construct($value, $mediaType)
fromString(string $headerLine) : \Zend\Http\Header\self
string
\Zend\Http\Header\Exception\InvalidArgumentException |
If the header does not match RFC 2616 definition. |
---|
\Zend\Http\Header\self
getCharset() : null | string
null
string
getFieldName() : string
string
getFieldValue() : string
string
getMediaType() : string
string
getParameters() : array
array
match(array | string $matchAgainst) : string | bool
arraystring
string
bool
Matched value or falsesetCharset(string $charset) : \Zend\Http\Header\self
string
\Zend\Http\Header\self
setMediaType(string $mediaType) : \Zend\Http\Header\self
string
\Zend\Http\Header\self
setParameters(array $parameters) : \Zend\Http\Header\self
array
\Zend\Http\Header\self
toString() : string
Returns in form of "NAME: VALUE"
string
assembleValue() : string
string
getMediaTypeObjectFromString(string $string) : \stdClass
splitMediaTypesFromString(string $criteria) : array
string
array
validateFormat(string $right, string $left) : bool
Validate that the right side format matches what the left side defines.
string
string
bool
validatePartialWildcard(string $right, string $left) : bool
string
string
bool
$mediaType : string
$parameters : array
$value : string