Class Requests_Utility_CaseInsensitiveDictionary
Case-insensitive dictionary, suitable for HTTP headers
-
Requests_Utility_CaseInsensitiveDictionary
implements
ArrayAccess,
IteratorAggregate
Methods summary
public
|
#
__construct( array $data = array() )
Creates a case insensitive dictionary.
Creates a case insensitive dictionary.
Parameters
- $data
- Dictionary/map to convert to case-insensitive
|
public
boolean
|
#
offsetExists( string $key )
Check if the given item exists
Check if the given item exists
Parameters
Returns
boolean Does the item exist?
Implementation of
ArrayAccess::offsetExists()
|
public
string
|
#
offsetGet( string $key )
Get the value for the item
Get the value for the item
Parameters
Returns
string Item value
Implementation of
ArrayAccess::offsetGet()
|
public
|
#
offsetSet( string $key, string $value )
Set the given item
Parameters
- $key
- Item name
- $value
- Item value
Throws
Implementation of
ArrayAccess::offsetSet()
|
public
|
#
offsetUnset( string $key )
Unset the given header
Parameters
Implementation of
ArrayAccess::offsetUnset()
|
public
ArrayIterator
|
#
getIterator( )
Get an iterator for the data
Get an iterator for the data
Returns
ArrayIterator
Implementation of
IteratorAggregate::getIterator()
|
public
array
|
#
getAll( )
Get the headers as an array
Get the headers as an array
Returns
array Header data
|
Properties summary
protected
array
|
$data
|
|