public function TimeoutAwarePsr18Adapter::execute in Acquia Search 2.x
Same name and namespace in other branches
- 3.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);
}