Метод |
Описание |
|
__construct ( Response $response ) |
Create instance |
|
expire ( ) : void |
Marks the response stale by setting the Age header to be equal to the maximum age of the response |
|
getAge ( ) : integer |
Returns the age of the response |
|
getEtag ( ) : string |
Returns the literal value of the ETag HTTP header |
|
getExpires ( ) : string |
Returns the value of the Expires header as a DateTime instance |
|
getLastModified ( ) : string |
Returns the Last-Modified HTTP header as a string |
|
getMaxAge ( ) : integer |
Returns the number of seconds after the time specified in the response's Date
header when the response should no longer be considered fresh. |
|
getTtl ( ) : integer | null |
Returns the response's time-to-live in seconds. |
|
setAge ( integer $age ) : void |
Set the age of the response |
|
setClientTtl ( integer $seconds ) : void |
Sets the response's time-to-live for private/client caches. |
|
setEtag ( string $etag, boolean $weak = false ) : void |
Sets the ETag value |
|
setExpires ( DateTime | string $date ) : void |
Sets the Expires HTTP header with a DateTime instance |
|
setLastModified ( DateTime | string $date ) : void |
Sets the Last-Modified HTTP header with a DateTime instance or string |
|
setMaxAge ( integer $value ) : void |
Sets the number of seconds after which the response should no longer be considered fresh. |
|
setPrivate ( ) : void |
Marks the response as "private". |
|
setPublic ( ) : void |
Marks the response as "public". |
|
setSharedMaxAge ( integer $value ) : void |
Sets the number of seconds after which the response should no longer be considered fresh by shared caches. |
|
setTtl ( integer $seconds ) : void |
Sets the response's time-to-live for shared caches. |
|