class Header

Represents a header and all of the values stored by that header

Hierarchy

  • class \Guzzle\Http\Message\Header implements \Guzzle\Http\Message\IteratorAggregate, \Guzzle\Http\Message\Countable, ToArrayInterface

Expanded class hierarchy of Header

5 string references to 'Header'

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Header.php, line 10

Namespace

Guzzle\Http\Message
View source

Members

Namesort descending Modifiers Type Description Overrides
Header::$arrayCache protected property
Header::$glue protected property
Header::$header protected property
Header::$stringCache protected property
Header::$values protected property
Header::add public function Add a value to the list of header values
Header::clearCache private function Clear the internal header cache
Header::count public function Returns the total number of header values
Header::getGlue public function Get the glue used to implode multiple values into a string
Header::getIterator public function Get an iterator that can be used to easily iterate over each header value
Header::getName public function Get the name of the header
Header::hasExactHeader public function Check if a particular case variation is present in the header Example: A header exists on a message for 'Foo', and 'foo'. The Header object will contain all of the values of 'Foo' and all of the values of 'foo'.…
Header::hasValue public function Check if the collection of headers has a particular value
Header::normalize public function Normalize the header into a single standard header with an array of values
Header::raw public function Get the raw data array of the headers. This array is represented as an associative array of the various cases that might be stored in the header and an array of values associated with each case variation.
Header::removeValue public function Remove a specific value from the header
Header::setGlue public function Change the glue used to implode the values
Header::toArray public function Get all of the header values as a flat array Overrides ToArrayInterface::toArray
Header::__construct public function Construct a new header object
Header::__toString public function Convert the header to a string