public static function Drupal::httpClient

Returns the default http client.

Return value

\Guzzle\Http\ClientInterface A guzzle http client instance.

6 calls to Drupal::httpClient()
IntegrationTest::testNodeCounterIntegration in drupal/core/modules/statistics/lib/Drupal/statistics/Tests/Views/IntegrationTest.php
Tests the integration of the {node_counter} table in views.
SearchRankingTest::testRankings in drupal/core/modules/search/lib/Drupal/search/Tests/SearchRankingTest.php
StatisticsAdminTest::setUp in drupal/core/modules/statistics/lib/Drupal/statistics/Tests/StatisticsAdminTest.php
Sets up a Drupal site for running functional and integration tests.
StatisticsLoggingTest::setUp in drupal/core/modules/statistics/lib/Drupal/statistics/Tests/StatisticsLoggingTest.php
Sets up a Drupal site for running functional and integration tests.
StatisticsReportsTest::testPopularContentBlock in drupal/core/modules/statistics/lib/Drupal/statistics/Tests/StatisticsReportsTest.php
Tests the "popular content" block.

... See full list

File

drupal/core/lib/Drupal.php, line 284
Contains Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function httpClient() {
  return static::$container
    ->get('http_default_client');
}