function Utils::defaultUserAgent
Get the default User-Agent string to use with Guzzle.
3 calls to Utils::defaultUserAgent()
- Client::configureDefaults in vendor/
guzzlehttp/ guzzle/ src/ Client.php - Configures the default options for a client.
- ClientFactory::fromOptions in core/
lib/ Drupal/ Core/ Http/ ClientFactory.php - Constructs a new client object from some configuration.
- default_user_agent in vendor/
guzzlehttp/ guzzle/ src/ functions.php - Get the default User-Agent string to use with Guzzle.
File
-
vendor/
guzzlehttp/ guzzle/ src/ Utils.php, line 114
Class
Namespace
GuzzleHttpCode
public static function defaultUserAgent() : string {
return sprintf('GuzzleHttp/%d', ClientInterface::MAJOR_VERSION);
}