PluginProbe
DecaLog / 4.4.0
DecaLog v4.4.0
3.0.2 3.1.0 3.10.0 3.2.0 3.3.0 3.4.0 3.4.1 3.5.0 3.5.1 3.6.0 3.6.1 3.6.2 3.6.3 3.7.0 3.7.1 3.8.0 3.9.0 3.9.1 4.0.0 4.1.0 4.2.0 4.3.0 4.3.1 4.4.0 4.5.0 All 75 releases
decalog / includes / libraries / http / client / HttpAsyncClient.php

HttpAsyncClient.php in DecaLog 4.4.0, at includes/libraries/http/client/HttpAsyncClient.php

26 lines 682 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Http\Client;
4
5 use Http\Promise\Promise;
6 use Psr\Http\Message\RequestInterface;
7
8 /**
9 * Sends a PSR-7 Request in an asynchronous way by returning a Promise.
10 *
11 * @author Joel Wurtz <joel.wurtz@gmail.com>
12 */
13 interface HttpAsyncClient
14 {
15 /**
16 * Sends a PSR-7 request in an asynchronous way.
17 *
18 * Exceptions related to processing the request are available from the returned Promise.
19 *
20 * @return Promise resolves a PSR-7 Response or fails with an Http\Client\Exception
21 *
22 * @throws \Exception If processing the request is impossible (eg. bad configuration).
23 */
24 public function sendAsyncRequest(RequestInterface $request);
25 }
26