You are here

public function Client::send in Auth0 Single Sign On 8.2

Send an HTTP request.

Parameters

array $options Request options to apply to the given: request and to the transfer. See \GuzzleHttp\RequestOptions.

Return value

ResponseInterface

Throws

GuzzleException

Overrides ClientInterface::send

File

vendor/guzzlehttp/guzzle/src/Client.php, line 126

Class

Client
@method ResponseInterface get(string|UriInterface $uri, array $options = []) @method ResponseInterface head(string|UriInterface $uri, array $options = []) @method ResponseInterface put(string|UriInterface $uri, array $options = []) @method…

Namespace

GuzzleHttp

Code

public function send(RequestInterface $request, array $options = []) {
  $options[RequestOptions::SYNCHRONOUS] = true;
  return $this
    ->sendAsync($request, $options)
    ->wait();
}