You are here

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

Asynchronously send an HTTP request.

Parameters

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

Return value

Promise\PromiseInterface

Overrides ClientInterface::sendAsync

File

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

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 sendAsync(RequestInterface $request, array $options = []) {

  // Merge the base URI into the request URI if needed.
  $options = $this
    ->prepareDefaults($options);
  return $this
    ->transfer($request
    ->withUri($this
    ->buildUri($request
    ->getUri(), $options), $request
    ->hasHeader('Host')), $options);
}