public function Response::getExpires

Same name in this branch

Returns the value of the Expires header as a DateTime instance.

@api

Return value

\DateTime A DateTime instance

1 call to Response::getExpires()
Response::getMaxAge in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php
Sets the number of seconds after the time specified in the response's Date header when the the response should no longer be considered fresh.

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php, line 634

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function getExpires() {
  return $this->headers
    ->getDate('Expires');
}