public function Client::head

Create a HEAD request for the client

Parameters

string|array $uri Resource URI:

array|Collection $headers HTTP headers:

Return value

RequestInterface

Overrides ClientInterface::head

See also

Guzzle\Http\ClientInterface::createRequest()

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Client.php, line 302

Class

Client
HTTP client

Namespace

Guzzle\Http

Code

public function head($uri = null, $headers = null) {
  return $this
    ->createRequest('HEAD', $uri, $headers);
}