You are here

public function RemoteManagerInterface::request in Entity Share 8.3

Performs a HTTP request. Wraps the HTTP client.

We need to override this method during tests to emulate another website.

Parameters

\Drupal\entity_share_client\Entity\RemoteInterface $remote: The remote website on which to perform the request.

string $method: HTTP method.

string $url: URL to request.

Return value

\Psr\Http\Message\ResponseInterface The response.

See also

\GuzzleHttp\ClientInterface::request()

1 method overrides RemoteManagerInterface::request()
RemoteManager::request in modules/entity_share_client/src/Service/RemoteManager.php
Performs a HTTP request. Wraps the HTTP client.

File

modules/entity_share_client/src/Service/RemoteManagerInterface.php, line 31

Class

RemoteManagerInterface
Remote manager interface methods.

Namespace

Drupal\entity_share_client\Service

Code

public function request(RemoteInterface $remote, $method, $url);