public function AbstractMessage::removeHeader

Remove a specific HTTP header.

Parameters

string $header HTTP header to remove.:

Return value

MessageInterface

Overrides MessageInterface::removeHeader

3 calls to AbstractMessage::removeHeader()
EntityEnclosingRequest::setBody in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/EntityEnclosingRequest.php
Set the body of the request
EntityEnclosingRequest::setExpectHeaderCutoff in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/EntityEnclosingRequest.php
Set the size that the entity body of the request must exceed before adding the Expect: 100-Continue header.
Request::setAuth in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php
Set HTTP authorization parameters

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/AbstractMessage.php, line 175

Class

AbstractMessage
Abstract HTTP request/response message

Namespace

Guzzle\Http\Message

Code

public function removeHeader($header) {
  $header = strtolower($header);
  unset($this->headers[$header]);
  $this
    ->changedHeader($header);
  return $this;
}