WPDev.one
Core Class

CaseInsensitiveDictionary

class CaseInsensitiveDictionary // Constructor: function Object() { [native code] }

Case-insensitive dictionary, suitable for HTTP headers

Methods 7 methods

Method / Return Description
__construct()
void

Creates a case insensitive dictionary.

Parameters: $data: array
offsetExists()
boolean

Check if the given item exists

Parameters: $offset: mixed
offsetGet()
(string

Get the value for the item

Parameters: $offset: mixed
offsetSet()
void

Set the given item

Parameters: $offset: mixed, $value: mixed
offsetUnset()
void

Unset the given header

Parameters: $offset: mixed
getIterator()
\ArrayIterator

Get an iterator for the data

getAll()
array

Get the headers as an array

Properties

Property / Type Description
$data
mixed
public
No description available.

Class Information

Source File
wp-includes/Requests/src/Utility/CaseInsensitiveDictionary.php
Advertisement