http_client

Same name and namespace in other branches
  1. 9 core/core.services.yml \http_client
  2. 8.9.x core/core.services.yml \http_client
  3. 11.x core/core.services.yml \http_client

Class

GuzzleHttp\Client
8 string references to http_client
AnnounceTestBase::setTestFeedResponses in core/modules/announcements_feed/tests/src/Kernel/AnnounceTestBase.php
Sets test feed responses.
CredentialForm::create in core/modules/migrate_drupal_ui/src/Form/CredentialForm.php
Instantiates a new instance of this class.
DevReleaseTest::setReleaseMetadata in core/modules/update/tests/src/Kernel/DevReleaseTest.php
Sets the release metadata file to use when fetching available updates.
Drupal::httpClient in core/lib/Drupal.php
Returns the default http client.
DrupalTest::testHttpClient in core/tests/Drupal/Tests/Core/DrupalTest.php
Tests the httpClient() method.

... See full list

File

core/core.services.yml

View source
  1. class: GuzzleHttp\Client
  2. factory:
  3. - '@http_client_factory'
  4. - fromOptions

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.