You are here

interface RequestServiceInterface in Entity Share 8.2

Request service interface methods.

Hierarchy

Expanded class hierarchy of RequestServiceInterface

All classes that implement RequestServiceInterface

3 files declare their use of RequestServiceInterface
BlockFieldBlockContentImporter.php in modules/entity_share_client/src/EventSubscriber/BlockFieldBlockContentImporter.php
EntityShareAsyncWorker.php in modules/entity_share_async/src/Plugin/QueueWorker/EntityShareAsyncWorker.php
PullForm.php in modules/entity_share_client/src/Form/PullForm.php

File

modules/entity_share_client/src/Service/RequestServiceInterface.php, line 12

Namespace

Drupal\entity_share_client\Service
View source
interface RequestServiceInterface {

  /**
   * Performs a HTTP request. Wraps the Guzzle HTTP client.
   *
   * Why wrap the Guzzle HTTP client? Because we want to be able to override
   * this service during tests to emulate another website.
   *
   * @param \GuzzleHttp\Client $http_client
   *   The HTTP client.
   * @param string $method
   *   HTTP method.
   * @param string $url
   *   URL to request.
   *
   * @return \Psr\Http\Message\ResponseInterface
   *   The response.
   *
   * @see \GuzzleHttp\ClientInterface::request()
   */
  public function request(Client $http_client, $method, $url);

}

Members

Namesort descending Modifiers Type Description Overrides
RequestServiceInterface::request public function Performs a HTTP request. Wraps the Guzzle HTTP client. 1