Title: Requests_Utility_CaseInsensitiveDictionary
Published: August 16, 2016
Last modified: November 2, 2022

---

# class Requests_Utility_CaseInsensitiveDictionary {}

## In this article

 * [Methods](https://developer.wordpress.org/reference/classes/requests_utility_caseinsensitivedictionary/?output_format=md#methods)
 * [Source](https://developer.wordpress.org/reference/classes/requests_utility_caseinsensitivedictionary/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/requests_utility_caseinsensitivedictionary/?output_format=md#related)

Case-insensitive dictionary, suitable for HTTP headers

## 󠀁[Methods](https://developer.wordpress.org/reference/classes/requests_utility_caseinsensitivedictionary/?output_format=md#methods)󠁿

| Name | Description | 
| [Requests_Utility_CaseInsensitiveDictionary::__construct](https://developer.wordpress.org/reference/classes/requests_utility_caseinsensitivedictionary/__construct/) | Creates a case insensitive dictionary. | 
| [Requests_Utility_CaseInsensitiveDictionary::getAll](https://developer.wordpress.org/reference/classes/requests_utility_caseinsensitivedictionary/getall/) | Get the headers as an array | 
| [Requests_Utility_CaseInsensitiveDictionary::getIterator](https://developer.wordpress.org/reference/classes/requests_utility_caseinsensitivedictionary/getiterator/) | Get an iterator for the data | 
| [Requests_Utility_CaseInsensitiveDictionary::offsetExists](https://developer.wordpress.org/reference/classes/requests_utility_caseinsensitivedictionary/offsetexists/) | Check if the given item exists | 
| [Requests_Utility_CaseInsensitiveDictionary::offsetGet](https://developer.wordpress.org/reference/classes/requests_utility_caseinsensitivedictionary/offsetget/) | Get the value for the item | 
| [Requests_Utility_CaseInsensitiveDictionary::offsetSet](https://developer.wordpress.org/reference/classes/requests_utility_caseinsensitivedictionary/offsetset/) | Set the given item | 
| [Requests_Utility_CaseInsensitiveDictionary::offsetUnset](https://developer.wordpress.org/reference/classes/requests_utility_caseinsensitivedictionary/offsetunset/) | Unset the given header |

## 󠀁[Source](https://developer.wordpress.org/reference/classes/requests_utility_caseinsensitivedictionary/?output_format=md#source)󠁿

[View all references](https://developer.wordpress.org/reference/files/wp-includes/requests/utility/caseinsensitivedictionary.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php#L15)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/requests_utility_caseinsensitivedictionary/?output_format=md#related)󠁿

| Used by | Description | 
| [Requests_Response_Headers](https://developer.wordpress.org/reference/classes/requests_response_headers/)`wp-includes/Requests/Response/Headers.php` |

Case-insensitive dictionary, suitable for HTTP headers

  |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Frequests_utility_caseinsensitivedictionary%2F)
before being able to contribute a note or feedback.