Class HeaderCollection
Provides a case-insensitive collection of headers
- Guzzle\Http\Message\Header\HeaderCollection implements IteratorAggregate, Countable, ArrayAccess, Guzzle\Common\ToArrayInterface
Methods summary
-
public__construct ( mixed $headers = array() ) -
public__clone ( ) -
publicclear ( )Clears the header collection
-
publicadd ( Guzzle\Http\Message\Header\HeaderInterface $header )Set a header on the collection
-
publicgetAll ( )Get an array of header objects
-
publicget ( mixed $key )Alias of offsetGet
-
publiccount ( ) -
publicoffsetExists ( mixed $offset ) -
publicoffsetGet ( mixed $offset ) -
publicoffsetSet ( mixed $offset, mixed $value ) -
publicoffsetUnset ( mixed $offset ) -
publicgetIterator ( ) -
publictoArray ( )Get the array representation of an object
Methods detail
Clears the header collection
#
public
Guzzle\Http\Message\Header\HeaderCollection
add( Guzzle\Http\Message\Header\HeaderInterface $header )
Set a header on the collection
Parameters
- $header
Guzzle\Http\Message\Header\HeaderInterface
$header Header to add
Returns
Get an array of header objects
Returns
arrayAlias of offsetGet
Implementation of
Implementation of
Implementation of
Implementation of
Implementation of
Implementation of
Get the array representation of an object
Returns
arrayImplementation of
Magic methods summary
Properties summary
protected
array
|
$headers |