Fully Qualified Name: | Laminas\Http\Header\ContentType |
Implements: | HeaderInterface |
Name | Description | Defined By |
---|---|---|
__construct() | ContentType | |
fromString() | Factory method: create an object from a string representation | ContentType |
getCharset() | Get the content-type character set encoding, if any | ContentType |
getFieldName() | Get the field name | ContentType |
getFieldValue() | Get the field value | ContentType |
getMediaType() | Get the media type | ContentType |
getParameters() | Get any additional content-type parameters currently set | ContentType |
match() | Determine if the mediatype value in this header matches the provided criteria | ContentType |
setCharset() | Set the content-type character set encoding | ContentType |
setMediaType() | Set the media type | ContentType |
setParameters() | Set additional content-type parameters | ContentType |
toString() | Create a string representation of the header | ContentType |
Parameter Name | Type | Description |
---|---|---|
$value | ||
$mediaType |
Returns: void
Factory method: create an object from a string representation
Parameter Name | Type | Description |
---|---|---|
$headerLine | string |
Returns: static
Get the content-type character set encoding, if any
Returns: null|string
Get the field name
Returns: string
Get the field value
Returns: string
Get the media type
Returns: string
Get any additional content-type parameters currently set
Returns: array
Determine if the mediatype value in this header matches the provided criteria
Parameter Name | Type | Description |
---|---|---|
$matchAgainst | array|string |
Returns: string|bool Matched value or false
Set the content-type character set encoding
Parameter Name | Type | Description |
---|---|---|
$charset | string |
Returns: $this
Set the media type
Parameter Name | Type | Description |
---|---|---|
$mediaType | string |
Returns: $this
Set additional content-type parameters
Parameter Name | Type | Description |
---|---|---|
$parameters | array |
Returns: $this
Create a string representation of the header
Returns: string