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()


Top ↑

Source

File: wp-includes/Requests/Utility/CaseInsensitiveDictionary.php

	public function __construct(array $data = array()) {
		foreach ($data as $key => $value) {
			$this->offsetSet($key, $value);
		}
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.