Abstract Location Header Supports headers that have URI as value

see \Zend\Http\Header\Location
see \Zend\Http\Header\ContentLocation
see \Zend\Http\Header\Referer

 Methods

Allow casting to string

__toString() : string

Returns

string

Create location-based header from string

fromString(string $headerLine) : \Zend\Http\Header\AbstractLocation

getFieldName()

getFieldName() 
Inherited

inherited_from \Zend\Http\Header\HeaderInterface::getFieldName()

Get header value as URI string

getFieldValue() : string

Returns

string

Return the URI for this header

getUri() : string

Returns

string

Set the URI/URL for this header, this can be a string or an instance of Zend\Uri\Http

setUri(string | \Zend\Uri\UriInterface $uri) : \Zend\Http\Header\AbstractLocation

Output header line

toString() : string

Returns

string

Return the URI for this header as an instance of Zend\Uri\Http

uri() : \Zend\Uri\UriInterface

 Properties

 

URI for this header

$uri : \Zend\Uri\UriInterface