Fully Qualified Name: | Zend\Http\Header\Accept |
Extends: | AbstractAccept |
Accept Header
Name | Description | Defined By |
---|---|---|
addMediaType() | Add a media type, with the given priority | Accept |
fromString() | Factory method: parse Accept header string | AbstractAccept |
getFieldName() | Get field name | Accept |
getFieldValue() | Get field value | AbstractAccept |
getFieldValuePartsFromHeaderLine() | Parse the Field Value Parts represented by a header line | AbstractAccept |
getPrioritized() | AbstractAccept | |
hasMediaType() | Does the header have the requested media type? | Accept |
match() | Match a media string against this header | AbstractAccept |
parseHeaderLine() | Parse a full header line or just the field value part. | AbstractAccept |
toString() | Cast to string | Accept |
Add a media type, with the given priority
Parameter Name | Type | Description |
---|---|---|
$type | string | |
$priority | int|float | |
$params | array |
Returns: \Accept
Factory method: parse Accept header string
Parameter Name | Type | Description |
---|---|---|
$headerLine | string |
Returns: \Accept
Get field name
Returns: string
Get field value
Parameter Name | Type | Description |
---|---|---|
$values | array|null |
Returns: string
Parse the Field Value Parts represented by a header line
Parameter Name | Type | Description |
---|---|---|
$headerLine | string |
Returns: array
Returns: array with all the keys, values and parameters this header represents:
Does the header have the requested media type?
Parameter Name | Type | Description |
---|---|---|
$type | string |
Returns: bool
Match a media string against this header
Parameter Name | Type | Description |
---|---|---|
$matchAgainst | array|string |
Returns: \Accept\FieldValuePArt\AcceptFieldValuePart|bool The matched value or false
Parse a full header line or just the field value part.
Parameter Name | Type | Description |
---|---|---|
$headerLine | string |
Returns:
Cast to string
Returns: string