function HttpAsyncClient::sendAsyncRequest
Sends a PSR-7 request in an asynchronous way.
Exceptions related to processing the request are available from the returned Promise.
Return value
Promise resolves a PSR-7 Response or fails with an Http\Client\Exception
Throws
\Exception If processing the request is impossible (eg. bad configuration).
1 method overrides HttpAsyncClient::sendAsyncRequest()
- Client::sendAsyncRequest in vendor/
php-http/ guzzle7-adapter/ src/ Client.php - Sends a PSR-7 request in an asynchronous way.
File
-
vendor/
php-http/ httplug/ src/ HttpAsyncClient.php, line 24
Class
- HttpAsyncClient
- Sends a PSR-7 Request in an asynchronous way by returning a Promise.
Namespace
Http\ClientCode
public function sendAsyncRequest(RequestInterface $request);