public function Client::sendAsync in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/guzzle/src/Client.php \GuzzleHttp\Client::sendAsync()
Asynchronously send an HTTP request.
Parameters
RequestInterface $request Request to send:
array $options Request options to apply to the given: request and to the transfer.
Return value
PromiseInterface
Overrides ClientInterface::sendAsync
File
- vendor/
guzzlehttp/ guzzle/ src/ Client.php, line 90
Class
- Client
- @method ResponseInterface get($uri, array $options = []) @method ResponseInterface head($uri, array $options = []) @method ResponseInterface put($uri, array $options = []) @method ResponseInterface post($uri, array $options = []) @method…
Namespace
GuzzleHttpCode
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)), $options);
}