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 ( )
-
public
clear ( )
Clears the header collection
-
public
add ( Guzzle\Http\Message\Header\HeaderInterface $header )
Set a header on the collection
-
public
getAll ( )
Get an array of header objects
-
public
get ( mixed $key )
Alias of offsetGet
-
public
count ( )
-
public
offsetExists ( mixed $offset )
-
public
offsetGet ( mixed $offset )
-
public
offsetSet ( mixed $offset, mixed $value )
-
public
offsetUnset ( mixed $offset )
-
public
getIterator ( )
-
public
toArray ( )
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
array
Alias of offsetGet
Implementation of
Implementation of
Implementation of
Implementation of
Implementation of
Implementation of
Get the array representation of an object
Returns
array
Implementation of
Magic methods summary
Properties summary
protected
array
|
$headers |