ResponseHeaderBag::getCookies()

array getCookies(string $format = self::COOKIES_FLAT) Returns an array with all cookies. Parameters string $format Return Value array Exceptions InvalidArgumentException When the $format is invalid

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::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::add()

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

ResponseCacheStrategyInterface::update()

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

Response::setStatusCode()

Response setStatusCode(int $code, mixed $text = null) Sets the response status code. Parameters int $code HTTP status code mixed $text HTTP status text If the status text is null it will be automatically populated for the known status codes and left empty otherwise. Return Value Response Exceptions InvalidArgumentException When the HTTP status code is not valid

Response::setTtl()

Response setTtl(int $seconds) Sets the response's time-to-live for shared caches. This method adjusts the Cache-Control/s-maxage directive. Parameters int $seconds Number of seconds Return Value Response