You are here

protected function HttpClient::getClient in HTTP Client Manager 8

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

Get Client.

Return value

\Guzzle\Service\Client The Configured Guzzle client instance.

File

src/HttpClient.php, line 77

Class

HttpClient

Namespace

Drupal\http_client_manager

Code

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