public function TimeoutAwarePsr18Adapter::execute in Acquia Search 3.x
Same name and namespace in other branches
- 2.x src/Client/Adapter/TimeoutAwarePsr18Adapter.php \Drupal\acquia_search\Client\Adapter\TimeoutAwarePsr18Adapter::execute()
Executes request.
Parameters
\Solarium\Core\Client\Request $request: Solarium Request.
\Solarium\Core\Client\Endpoint $endpoint: Solarium Endpoint.
Return value
\Solarium\Core\Client\Response Solarium response object.
File
- src/
Client/ Adapter/ TimeoutAwarePsr18Adapter.php, line 79
Class
- TimeoutAwarePsr18Adapter
- Psr18 Adapter that implements TimeoutAwareInterface.
Namespace
Drupal\acquia_search\Client\AdapterCode
public function execute(Request $request, Endpoint $endpoint) : Response {
$request
->setOptions([
'timeout' => $this->timeout,
]);
return $this->psr18Adapter
->execute($request, $endpoint);
}