public function ClientInterface::setUserAgent

Set the name of your application and application version that will be appended to the User-Agent header of all requests.

Parameters

string $userAgent User agent string:

bool $includeDefault Set to TRUE to append the default Guzzle use agent:

Return value

ClientInterface

1 method overrides ClientInterface::setUserAgent()
Client::setUserAgent in drupal/core/vendor/guzzle/http/Guzzle/Http/Client.php
Set the name of your application and application version that will be appended to the User-Agent header of all requests.

File

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

Class

ClientInterface
Client interface for send HTTP requests

Namespace

Guzzle\Http

Code

public function setUserAgent($userAgent, $includeDefault = false);