[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Case-insensitive dictionary, suitable for HTTP headers

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

Defines 1 class

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


Class: CaseInsensitiveDictionary  - X-Ref

Case-insensitive dictionary, suitable for HTTP headers

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

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

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

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

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

return: string|null Item value (null if the item key doesn't exist)
param: string $offset Item key

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

param: string $offset Item name
param: string $value Item value

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

param: string $offset The key for the item to unset.

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 Dec 21 08:20:01 2024 Cross-referenced by PHPXref