public function ClientInterface::setDefaultHeaders

Set the default HTTP headers to add to each request created by the client

Parameters

array|Collection $headers Default HTTP headers:

Return value

ClientInterface

1 method overrides ClientInterface::setDefaultHeaders()
Client::setDefaultHeaders in drupal/core/vendor/guzzle/http/Guzzle/Http/Client.php
Set the default HTTP headers to add to each request created by the client

File

drupal/core/vendor/guzzle/http/Guzzle/Http/ClientInterface.php, line 77

Class

ClientInterface
Client interface for send HTTP requests

Namespace

Guzzle\Http

Code

public function setDefaultHeaders($headers);