Fully Qualified Name: | Laminas\Http\Header\Age |
Implements: | HeaderInterface |
Age HTTP Header
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 |
Parameter Name | Type | Description |
---|---|---|
$deltaSeconds |
Returns: void
Create Age header from string
Parameter Name | Type | Description |
---|---|---|
$headerLine | string |
Returns: static
Get number of seconds
Returns: int
Get header name
Returns: string
Get header value (number of seconds)
Returns: string
Set number of seconds
Parameter Name | Type | Description |
---|---|---|
$delta | int |
Returns: $this
Return header line In case of overflow RFC states to set value of 2147483648 (2^31)
Returns: string