You are here

public function HttpClientRequest::removeHeader in Http Client 6.2

Same name and namespace in other branches
  1. 7.2 includes/HttpClient.inc \HttpClientRequest::removeHeader()

Removes a header.

Parameters

string $name:

Return value

void

File

includes/HttpClient.inc, line 629

Class

HttpClientRequest
This is a convenience class that allows the manipulation of a http request before it's handed over to curl.

Code

public function removeHeader($name) {
  unset($this->headers[$name]);
}