Fully Qualified Name: | Laminas\Http\Header\GenericHeader |
Implements: | HeaderInterface |
Content-Location Header
Name | Description | Defined By |
---|---|---|
__construct() | Constructor | GenericHeader |
fromString() | Factory to generate a header object from a string | GenericHeader |
getFieldName() | Retrieve header field name | GenericHeader |
getFieldValue() | Retrieve header field value | GenericHeader |
setFieldName() | Set header field name | GenericHeader |
setFieldValue() | Set header field value | GenericHeader |
splitHeaderLine() | Splits the header line in `name` and `value` parts. | GenericHeader |
toString() | Cast to string as a well formed HTTP header line | GenericHeader |
Constructor
Parameter Name | Type | Description |
---|---|---|
$fieldName | null|string | |
$fieldValue | null|string |
Returns:
Factory to generate a header object from a string
Parameter Name | Type | Description |
---|---|---|
$headerLine | string |
Returns: static
Retrieve header field name
Returns: string
Retrieve header field value
Returns: string
Set header field name
Parameter Name | Type | Description |
---|---|---|
$fieldName | string |
Returns: $this
Set header field value
Parameter Name | Type | Description |
---|---|---|
$fieldValue | string |
Returns: $this
Splits the header line in `name` and `value` parts.
Parameter Name | Type | Description |
---|---|---|
$headerLine | string |
Returns: string[] `name` in the first index and `value` in the second.
Cast to string as a well formed HTTP header line
Returns in form of "NAME: VALUE\r\n"
Returns: string