[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

/wp-includes/Requests/Utility/ -> CaseInsensitiveDictionary.php (summary)

Case-insensitive dictionary, suitable for HTTP headers

File Size: 103 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Requests_Utility_CaseInsensitiveDictionary:: (7 methods):
  __construct()
  offsetExists()
  offsetGet()
  offsetSet()
  offsetUnset()
  getIterator()
  getAll()


Class: Requests_Utility_CaseInsensitiveDictionary  - X-Ref

Case-insensitive dictionary, suitable for HTTP headers

__construct(array $data = array()   X-Ref
Creates a case insensitive dictionary.

param: array $data Dictionary/map to convert to case-insensitive

offsetExists($key)   X-Ref
Check if the given item exists

param: string $key Item key
return: boolean Does the item exist?

offsetGet($key)   X-Ref
Get the value for the item

param: string $key Item key
return: string Item value

offsetSet($key, $value)   X-Ref
Set the given item

param: string $key Item name
param: string $value Item value

offsetUnset($key)   X-Ref
Unset the given header

param: string $key

getIterator()   X-Ref
Get an iterator for the data

return: ArrayIterator

getAll()   X-Ref
Get the headers as an array

return: array Header data



Generated: Sat Nov 23 20:47:33 2019 Cross-referenced by PHPXref 0.7