Content-Location Header

link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.36
package Default
inherited_from \Zend\Http\Header\AbstractLocation

 Methods

Allow casting to string

__toString() : string
Inherited

Returns

string

Create location-based header from string

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

Parameters

$headerLine

string

Exceptions

\Zend\Http\Header\Exception\InvalidArgumentException

Returns

\Zend\Http\Header\AbstractLocation

Return header name

getFieldName() : string

Returns

string

Get header value as URI string

getFieldValue() : string
Inherited
inherited_from \Zend\Http\Header\HeaderInterface::getFieldValue()

Returns

string

Return the URI for this header

getUri() : string
Inherited

Returns

string

Set the URI/URL for this header according to RFC Referer URI should not have fragment

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

Parameters

$uri

string\Zend\Uri\Http

Returns

\Zend\Http\Header\Referer

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

Parameters

$uri

string\Zend\Uri\UriInterface

Exceptions

\Zend\Http\Header\Exception\InvalidArgumentException

Returns

\Zend\Http\Header\AbstractLocation

Output header line

toString() : string
Inherited

Returns in form of "NAME: VALUE"

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

Returns

string

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

uri() : \Zend\Uri\UriInterface
Inherited

Returns

\Zend\Uri\UriInterface

 Properties

 

URI for this header

$uri : \Zend\Uri\UriInterface

Default

null