You are here

function normalize_header_keys in Lockr 7.3

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 224

Namespace

GuzzleHttp

Code

function normalize_header_keys(array $headers) {
  $result = [];
  foreach (array_keys($headers) as $key) {
    $result[strtolower($key)] = $key;
  }
  return $result;
}