function normalize_header_keys in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/guzzle/src/functions.php \GuzzleHttp\normalize_header_keys()
Creates an associative array of lowercase header names to the actual header casing.
Parameters
array $headers:
Return value
array
File
- vendor/
guzzlehttp/ guzzle/ src/ functions.php, line 219
Namespace
GuzzleHttpCode
function normalize_header_keys(array $headers) {
$result = [];
foreach (array_keys($headers) as $key) {
$result[strtolower($key)] = $key;
}
return $result;
}