Case-insensitive dictionary, suitable for HTTP headers
package | Requests |
---|---|
inherited_from | \Requests_Utility_CaseInsensitiveDictionary |
__construct(array $data = array()
)
array
Dictionary/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.
string
array
Value to flatten
string
Flattened valuegetAll() : array
array
Header datagetIterator() : \ArrayIterator
Converts the internal
inherited_from | \Requests_Utility_CaseInsensitiveDictionary::getIterator() |
---|
\ArrayIterator
getIterator() : \ArrayIterator
\ArrayIterator
getValues(string $key) : array
string
array
Header valuesoffsetExists(string $key) : boolean
string
Item key
boolean
Does 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
string
Header valueoffsetGet(string $key) : string
string
Item key
string
Item valueoffsetSet(string $key, string $value)
inherited_from | \Requests_Utility_CaseInsensitiveDictionary::offsetSet() |
---|
string
Item name
string
Item value
\Requests_Exception |
On attempting to use dictionary as list (`invalidset`) |
---|
offsetSet(string $key, string $value)
string
Item name
string
Item value
\Requests_Exception |
On attempting to use dictionary as list (`invalidset`) |
---|
offsetUnset(string $key)
string
$data : array
array()