Location Header

link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30

 Methods

Allow casting to string

__toString() : string
Inherited

inherited_from \Zend\Http\Header\AbstractLocation::__toString()

Returns

string

Create location-based header from string

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

inherited_from \Zend\Http\Header\AbstractLocation::fromString()

Parameters

$headerLine

string

Exceptions

\Zend\Http\Header\Exception\InvalidArgumentException

Returns

Return header name

getFieldName() : string

Returns

string

Get header value as URI string

getFieldValue() : string
Inherited

inherited_from \Zend\Http\Header\AbstractLocation::getFieldValue()

Returns

string

Return the URI for this header

getUri() : string
Inherited

inherited_from \Zend\Http\Header\AbstractLocation::getUri()

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
Inherited

inherited_from \Zend\Http\Header\AbstractLocation::setUri()

Parameters

Exceptions

\Zend\Http\Header\Exception\InvalidArgumentException

Returns

Output header line

toString() : string
Inherited

Returns in form of "NAME: VALUE"

inherited_from \Zend\Http\Header\AbstractLocation::toString()

Returns

string

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

uri() : \Zend\Uri\UriInterface
Inherited

inherited_from \Zend\Http\Header\AbstractLocation::uri()

Returns

 Properties

 

URI for this header

$uri : \Zend\Uri\UriInterface
Inherited

inherited_from \Zend\Http\Header\AbstractLocation::$$uri