ResponseHeaderBag::clearCookie()

clearCookie(string $name, string $path = '/', string $domain = null, bool $secure = false, bool $httpOnly = true) Clears a cookie in the browser. Parameters string $name string $path string $domain bool $secure bool $httpOnly

ResponseHeaderBag::allPreserveCase()

array allPreserveCase() Returns the headers, with original capitalizations. Return Value array An array of headers

ResponseHeaderBag

class ResponseHeaderBag extends HeaderBag ResponseHeaderBag is a container for Response HTTP headers. Constants COOKIES_FLAT COOKIES_ARRAY DISPOSITION_ATTACHMENT DISPOSITION_INLINE Methods __construct(array $headers = array()) Constructor. string __toString() Returns the headers as a string. array all() Returns the headers. from HeaderBag array keys() Returns the parameter keys. from HeaderBag replace(array $headers = array()) Replaces the current HTTP

ResponseCacheStrategyInterface::update()

update(Response $response) Updates the Response HTTP headers based on the embedded Responses. Parameters Response $response

ResponseCacheStrategyInterface::add()

add(Response $response) Adds a Response. Parameters Response $response

ResponseCacheStrategyInterface

interface ResponseCacheStrategyInterface ResponseCacheStrategyInterface implementations know how to compute the Response cache HTTP header based on the different response cache headers. Methods add(Response $response) Adds a Response. update(Response $response) Updates the Response HTTP headers based on the embedded Responses. Details add(Response $response) Adds a Response. Parameters Response $response

ResponseCacheStrategy::update()

update(Response $response) Updates the Response HTTP headers based on the embedded Responses. Parameters Response $response

ResponseCacheStrategy::add()

add(Response $response) Adds a Response. Parameters Response $response

ResponseCacheStrategy

class ResponseCacheStrategy implements ResponseCacheStrategyInterface ResponseCacheStrategy knows how to compute the Response cache HTTP header based on the different response cache headers. This implementation changes the master response TTL to the smallest TTL received or force validation if one of the surrogates has validation cache strategy. Methods add(Response $response) Adds a Response. update(Response $response) Updates the Response HTTP headers based on the embedded Respons

Response::setVary()

Response setVary(string|array $headers, bool $replace = true) Sets the Vary header. Parameters string|array $headers bool $replace Whether to replace the actual value or not (true by default) Return Value Response