function Utils::normalizeHeaderKeys
Creates an associative array of lowercase header names to the actual header casing.
3 calls to Utils::normalizeHeaderKeys()
- EasyHandle::createResponse in vendor/
guzzlehttp/ guzzle/ src/ Handler/ EasyHandle.php - Attach a response to the easy handle based on the received headers.
- normalize_header_keys in vendor/
guzzlehttp/ guzzle/ src/ functions.php - Creates an associative array of lowercase header names to the actual header casing.
- StreamHandler::checkDecode in vendor/
guzzlehttp/ guzzle/ src/ Handler/ StreamHandler.php
File
-
vendor/
guzzlehttp/ guzzle/ src/ Utils.php, line 194
Class
Namespace
GuzzleHttpCode
public static function normalizeHeaderKeys(array $headers) : array {
$result = [];
foreach (\array_keys($headers) as $key) {
$result[\strtolower($key)] = $key;
}
return $result;
}