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

Breadcrumb

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

function CurlFactory::removeHeader

Remove a header from the options array.

Parameters

string $name Case-insensitive header to remove:

array $options Array of options to modify:

1 call to CurlFactory::removeHeader()
CurlFactory::applyBody in vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php

File

vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php, line 424

Class

CurlFactory
Creates curl resources from a request

Namespace

GuzzleHttp\Handler

Code

private function removeHeader(string $name, array &$options) : void {
    foreach (\array_keys($options['_headers']) as $key) {
        if (!\strcasecmp($key, $name)) {
            unset($options['_headers'][$key]);
            return;
        }
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal