You are here

interface ResponseCacheStrategyInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/HttpCache/ResponseCacheStrategyInterface.php \Symfony\Component\HttpKernel\HttpCache\ResponseCacheStrategyInterface

ResponseCacheStrategyInterface implementations know how to compute the Response cache HTTP header based on the different response cache headers.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of ResponseCacheStrategyInterface

All classes that implement ResponseCacheStrategyInterface

File

vendor/symfony/http-kernel/HttpCache/ResponseCacheStrategyInterface.php, line 26

Namespace

Symfony\Component\HttpKernel\HttpCache
View source
interface ResponseCacheStrategyInterface {

  /**
   * Adds a Response.
   *
   * @param Response $response
   */
  public function add(Response $response);

  /**
   * Updates the Response HTTP headers based on the embedded Responses.
   *
   * @param Response $response
   */
  public function update(Response $response);

}

Members

Namesort descending Modifiers Type Description Overrides
ResponseCacheStrategyInterface::add public function Adds a Response. 1
ResponseCacheStrategyInterface::update public function Updates the Response HTTP headers based on the embedded Responses. 1