Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Utils.php

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

Utils

Namespace

GuzzleHttp

Code

public static function defaultUserAgent() : string {
    return sprintf('GuzzleHttp/%d', ClientInterface::MAJOR_VERSION);
}
RSS feed
Powered by Drupal