class HeaderBag

HeaderBag is a container for HTTP headers.

@author Fabien Potencier <fabien@symfony.com>

@api

Hierarchy

  • class \Symfony\Component\HttpFoundation\HeaderBag implements \Symfony\Component\HttpFoundation\IteratorAggregate, \Symfony\Component\HttpFoundation\Countable

Expanded class hierarchy of HeaderBag

2 files declare their use of HeaderBag

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/HeaderBag.php, line 21

Namespace

Symfony\Component\HttpFoundation
View source

Members

Namesort descending Modifiers Type Description Overrides
HeaderBag::$cacheControl protected property
HeaderBag::$headers protected property
HeaderBag::add public function Adds new headers the current HTTP headers set.
HeaderBag::addCacheControlDirective public function
HeaderBag::all public function Returns the headers.
HeaderBag::contains public function Returns true if the given HTTP header contains the given value.
HeaderBag::count public function Returns the number of headers.
HeaderBag::get public function Returns a header value by name.
HeaderBag::getCacheControlDirective public function 1
HeaderBag::getCacheControlHeader protected function
HeaderBag::getDate public function Returns the HTTP header value converted to a date.
HeaderBag::getIterator public function Returns an iterator for headers.
HeaderBag::has public function Returns true if the HTTP header is defined.
HeaderBag::hasCacheControlDirective public function 1
HeaderBag::keys public function Returns the parameter keys.
HeaderBag::parseCacheControl protected function Parses a Cache-Control HTTP header.
HeaderBag::remove public function Removes a header. 1
HeaderBag::removeCacheControlDirective public function
HeaderBag::replace public function Replaces the current HTTP headers by a new set. 1
HeaderBag::set public function Sets a header by name. 1
HeaderBag::__construct public function Constructor. 1
HeaderBag::__toString public function Returns the headers as a string. 1