Class Age

Summary

Fully Qualified Name: Zend\Http\Header\Age
Implements: HeaderInterface

Description

Age HTTP Header

Methods

Name Description Defined By
__construct() Age
fromString() Create Age header from string Age
getDeltaSeconds() Get number of seconds Age
getFieldName() Get header name Age
getFieldValue() Get header value (number of seconds) Age
setDeltaSeconds() Set number of seconds Age
toString() Return header line In case of overflow RFC states to set value of 2147483648 (2^31) Age

Method Details

__construct()

Parameter Name Type Description
$deltaSeconds

Returns: void

fromString()

Create Age header from string

Parameter Name Type Description
$headerLine string

Returns: \Age

getDeltaSeconds()

Get number of seconds

Returns: int

getFieldName()

Get header name

Returns: string

getFieldValue()

Get header value (number of seconds)

Returns: int

setDeltaSeconds()

Set number of seconds

Parameter Name Type Description
$delta int

Returns: \RetryAfter

toString()

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

Returns: string

Top