Age HTTP Header

link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.6
package Default

 Methods

__construct()

__construct($deltaSeconds = null

Parameters

$deltaSeconds

Create Age header from string

fromString(string $headerLine) : \Zend\Http\Header\Age
Static
inherited_from \Zend\Http\Header\HeaderInterface::fromString()

Parameters

$headerLine

string

Exceptions

\Zend\Http\Header\Exception\InvalidArgumentException

Returns

\Zend\Http\Header\Age

Get number of seconds

getDeltaSeconds() : integer

Returns

integer

Get header name

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

Returns

string

Get header value (number of seconds)

getFieldValue() : integer
inherited_from \Zend\Http\Header\HeaderInterface::getFieldValue()

Returns

integer

Set number of seconds

setDeltaSeconds(integer $delta) : \Zend\Http\Header\RetryAfter

Parameters

$delta

integer

Returns

\Zend\Http\Header\RetryAfter

Return header line In case of overflow RFC states to set value of 2147483648 (2^31)

toString() : string

Returns in form of "NAME: VALUE"

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

Returns

string

 Properties

 

Estimate of the amount of time in seconds since the response

$deltaSeconds : integer

Default