public function send(RequestInterface $request, array $options = [])
{
$retries = isset($options['retries']) ? $options['retries'] : $this->retries;
$httpOptions = isset($options['httpOptions']) ? $options['httpOptions'] : $this->httpOptions;
$backoff = new ExponentialBackoff($retries, $this->getRetryFunction());
$signedRequest = $this->shouldSignRequest ? $this->signRequest($request) : $request;
try {
return $backoff->execute($this->httpHandler, [$signedRequest, $httpOptions]);
} catch (\Exception $ex) {
throw $this->convertToGoogleException($ex);
}
}