private function Store::persistResponse

Persists the Response HTTP headers.

Parameters

Response $response A Response instance:

Return value

array An array of HTTP headers

2 calls to Store::persistResponse()
Store::invalidate in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/Store.php
Invalidates all cache entries that match the request.
Store::write in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/Store.php
Writes a cache entry to the store for the given Request and Response.

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/Store.php, line 378

Class

Store
Store implements all the logic for storing cache metadata (Request and Response headers).

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

private function persistResponse(Response $response) {
  $headers = $response->headers
    ->all();
  $headers['X-Status'] = array(
    $response
      ->getStatusCode(),
  );
  return $headers;
}