Class Guzzle\Http\Message\Header\HeaderCollection

InheritanceGuzzle\Http\Message\Header\HeaderCollection
ImplementsArrayAccess, Countable, Guzzle\Common\ToArrayInterface, IteratorAggregate

Provides a case-insensitive collection of headers

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$headers array Guzzle\Http\Message\Header\HeaderCollection

Property Details

$headers protected property
protected array $headers null

Method Details

__clone() public method

public void __clone ( )
__construct() public method

public void __construct ( $headers = [] )
$headers
add() public method

Set a header on the collection

public self add ( Guzzle\Http\Message\Header\HeaderInterface $header )
$header Guzzle\Http\Message\Header\HeaderInterface

Header to add

clear() public method

Clears the header collection

public void clear ( )
count() public method

public void count ( )
get() public method

Alias of offsetGet

public void get ( $key )
$key
getAll() public method

Get an array of header objects

public array getAll ( )
getIterator() public method

public void getIterator ( )
offsetExists() public method

public void offsetExists ( $offset )
$offset
offsetGet() public method

public void offsetGet ( $offset )
$offset
offsetSet() public method

public void offsetSet ( $offset, $value )
$offset
$value
offsetUnset() public method

public void offsetUnset ( $offset )
$offset
toArray() public method

public void toArray ( )