Drupal::httpClient

public static Drupal::httpClient()

Returns the default http client.

Return value

\GuzzleHttp\Client A guzzle http client instance.

File

core/lib/Drupal.php, line 418
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function httpClient() {
  return static::getContainer()->get('http_client');
}
doc_Drupal
2016-10-29 09:02:46
Comments
Leave a Comment

Please login to continue.