interface HttpAsyncClient
Sends a PSR-7 Request in an asynchronous way by returning a Promise.
@author Joel Wurtz <joel.wurtz@gmail.com>
Hierarchy
- interface \Http\Client\HttpAsyncClient
Expanded class hierarchy of HttpAsyncClient
All classes that implement HttpAsyncClient
7 files declare their use of HttpAsyncClient
- Client.php in vendor/
php-http/ guzzle7-adapter/ src/ Client.php - CommonClassesStrategy.php in vendor/
php-http/ discovery/ src/ Strategy/ CommonClassesStrategy.php - DependencyResolver.php in vendor/
open-telemetry/ sdk/ Common/ Adapter/ HttpDiscovery/ DependencyResolver.php - HttpAsyncClientDiscovery.php in vendor/
php-http/ discovery/ src/ HttpAsyncClientDiscovery.php - HttpPlugClientResolver.php in vendor/
open-telemetry/ sdk/ Common/ Adapter/ HttpDiscovery/ HttpPlugClientResolver.php
File
-
vendor/
php-http/ httplug/ src/ HttpAsyncClient.php, line 13
Namespace
Http\ClientView source
interface HttpAsyncClient {
/**
* Sends a PSR-7 request in an asynchronous way.
*
* Exceptions related to processing the request are available from the returned Promise.
*
* @return Promise resolves a PSR-7 Response or fails with an Http\Client\Exception
*
* @throws \Exception If processing the request is impossible (eg. bad configuration).
*/
public function sendAsyncRequest(RequestInterface $request);
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
HttpAsyncClient::sendAsyncRequest | public | function | Sends a PSR-7 request in an asynchronous way. | 1 |