Requests_Utility_CaseInsensitiveDictionary::__construct() WordPress Method
This utility class provides a case-insensitive dictionary for the WordPress HTTP Requests API. It is useful for handling headers and other data that is case-insensitive.
Requests_Utility_CaseInsensitiveDictionary::__construct( array $data = array() ) #
Creates a case insensitive dictionary.
Parameters
- $data
(array)(Optional)Dictionary/map to convert to case-insensitive
Default value: array()
Source
File: wp-includes/Requests/Utility/CaseInsensitiveDictionary.php
public function __construct(array $data = array()) { foreach ($data as $key => $value) { $this->offsetSet($key, $value); } }
Expand full source codeCollapse full source codeView on TracView on GitHub