Fully Qualified Name: | Laminas\Http\Header\Location |
Extends: | AbstractLocation |
Location Header
Name | Description | Defined By |
---|---|---|
__toString() | Allow casting to string | AbstractLocation |
fromString() | Create location-based header from string | AbstractLocation |
getFieldName() | Return header name | Location |
getFieldValue() | Get header value as URI string | AbstractLocation |
getUri() | Return the URI for this header | AbstractLocation |
setUri() | Set the URI/URL for this header, this can be a string or an instance of Laminas\Uri\Http | AbstractLocation |
toString() | Output header line | AbstractLocation |
uri() | Return the URI for this header as an instance of Laminas\Uri\Http | AbstractLocation |
Allow casting to string
Returns: string
Create location-based header from string
Parameter Name | Type | Description |
---|---|---|
$headerLine | string |
Returns: static
Return header name
Returns: string
Get header value as URI string
Returns: string
Return the URI for this header
Returns: string
Set the URI/URL for this header, this can be a string or an instance of Laminas\Uri\Http
Parameter Name | Type | Description |
---|---|---|
$uri | string|\UriInterface |
Returns: $this
Output header line
Returns: string
Return the URI for this header as an instance of Laminas\Uri\Http
Returns: \UriInterface