You are here

protected function HttpClient::getClient in HTTP Client Manager 8.2

Same name and namespace in other branches
  1. 8 src/HttpClient.php \Drupal\http_client_manager\HttpClient::getClient()

Get Client.

Return value

\GuzzleHttp\Command\Guzzle\GuzzleClient The Configured Guzzle client instance.

1 call to HttpClient::getClient()
HttpClient::getClientByCommand in src/HttpClient.php
Get Client by Command.

File

src/HttpClient.php, line 147

Class

HttpClient
The http client.

Namespace

Drupal\http_client_manager

Code

protected function getClient() {
  if (empty($this->client)) {
    $this
      ->setupGuzzleClient();
  }
  return $this->client;
}