\Guzzle\Http\Message\HeaderHeaderCollection

Provides a case-insensitive collection of headers

Summary

Methods
Properties
Constants
__construct()
__clone()
clear()
add()
getAll()
get()
count()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
getIterator()
toArray()
No public properties found
No constants found
No protected methods found
$headers
N/A
No private methods found
No private properties found
N/A

Properties

$headers

$headers : array

Type

array

Methods

__construct()

__construct(  $headers = array()) 

Parameters

$headers

__clone()

__clone() 

clear()

clear() 

Clears the header collection

getAll()

getAll() : array

Get an array of header objects

Returns

array

get()

get(  $key) 

Alias of offsetGet

Parameters

$key

count()

count() 

offsetExists()

offsetExists(  $offset) 

Parameters

$offset

offsetGet()

offsetGet(  $offset) 

Parameters

$offset

offsetSet()

offsetSet(  $offset,   $value) 

Parameters

$offset
$value

offsetUnset()

offsetUnset(  $offset) 

Parameters

$offset

getIterator()

getIterator() 

toArray()

toArray() : array

Get the array representation of an object

Returns

array