You are here

protected function HttpServiceApiWrapperBase::callByRequest in HTTP Client Manager 8.2

Call by Request.

Parameters

\Drupal\http_client_manager\Request\HttpRequestInterface $request: The Request bean.

Return value

array|bool The service response.

File

src/Plugin/HttpServiceApiWrapper/HttpServiceApiWrapperBase.php, line 217

Class

HttpServiceApiWrapperBase
Class HttpServiceApiWrapperBase.

Namespace

Drupal\http_client_manager\Plugin\HttpServiceApiWrapper

Code

protected function callByRequest(HttpRequestInterface $request) {
  $result = $this
    ->call($request
    ->getCommand(), $request
    ->getArgs(), $request
    ->getFallback());
  return $this
    ->getResponse($result);
}