Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Utils.php

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

Utils

Namespace

GuzzleHttp

Code

public static function normalizeHeaderKeys(array $headers) : array {
    $result = [];
    foreach (\array_keys($headers) as $key) {
        $result[\strtolower($key)] = $key;
    }
    return $result;
}
RSS feed
Powered by Drupal