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\HandlerCode
private function removeHeader(string $name, array &$options) : void {
foreach (\array_keys($options['_headers']) as $key) {
if (!\strcasecmp($key, $name)) {
unset($options['_headers'][$key]);
return;
}
}
}