You are here

public function ResponseHeaderBag::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/ResponseHeaderBag.php \Symfony\Component\HttpFoundation\ResponseHeaderBag::__construct()

Constructor.

Parameters

array $headers An array of HTTP headers:

Overrides HeaderBag::__construct

File

vendor/symfony/http-foundation/ResponseHeaderBag.php, line 47

Class

ResponseHeaderBag
ResponseHeaderBag is a container for Response HTTP headers.

Namespace

Symfony\Component\HttpFoundation

Code

public function __construct(array $headers = array()) {
  parent::__construct($headers);
  if (!isset($this->headers['cache-control'])) {
    $this
      ->set('Cache-Control', '');
  }
}