Case-insensitive dictionary, suitable for HTTP headers
| package | Requests |
|---|---|
| inherited_from | \Requests_Utility_CaseInsensitiveDictionary |
__construct(array $data = array())
arrayDictionary/map to convert to case-insensitive
flatten(string|array $value) : string
Converts an array into a string by imploding values with a comma, as per RFC2616's rules for folding headers.
stringarrayValue to flatten
stringFlattened valuegetAll() : array
arrayHeader datagetIterator() : \ArrayIterator
Converts the internal
| inherited_from | \Requests_Utility_CaseInsensitiveDictionary::getIterator() |
|---|
\ArrayIteratorgetIterator() : \ArrayIterator
\ArrayIteratorgetValues(string $key) : array
string
arrayHeader valuesoffsetExists(string $key) : boolean
stringItem key
booleanDoes the item exist?offsetGet(string $key) : string
Unlike \self::getValues(), this returns a string. If there are multiple values, it concatenates them with a comma as per RFC2616.
Avoid using this where commas may be used unquoted in values, such as Set-Cookie headers.
| inherited_from | \Requests_Utility_CaseInsensitiveDictionary::offsetGet() |
|---|
string
stringHeader valueoffsetGet(string $key) : string
stringItem key
stringItem valueoffsetSet(string $key, string $value)
| inherited_from | \Requests_Utility_CaseInsensitiveDictionary::offsetSet() |
|---|
stringItem name
stringItem value
\Requests_Exception |
On attempting to use dictionary as list (`invalidset`) |
|---|
offsetSet(string $key, string $value)
stringItem name
stringItem value
\Requests_Exception |
On attempting to use dictionary as list (`invalidset`) |
|---|
offsetUnset(string $key)
string
$data : array
array()