File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ In both cases, the `Http\Client\HttpClient` provides a `sendRequest` method to s
9
9
and returns a PSR-7 ` ResponseInterface ` or throws an exception that implements ` Http\Client\Exception ` .
10
10
11
11
There is also the ` Http\Client\HttpAsyncClient ` which provides the ` sendAsyncRequest ` method to send
12
- a request asynchronously and returns a ` Http\Client \Promise ` .
12
+ a request asynchronously and returns a ` Http\Promise \Promise ` .
13
13
14
14
The promise allows to specify handlers for a PSR-7 ` ResponseInterface `
15
15
or an exception that implements ` Http\Client\Exception ` .
16
16
17
17
18
18
<p class =" text-warning " >
19
- Contract for the `Http\Client \Promise` is temporary until
19
+ Contract for the `Http\Promise \Promise` is temporary until
20
20
[PSR is released](https://groups.google.com/forum/?fromgroups#!topic/php-fig/wzQWpLvNSjs).
21
21
Once it is out, we will use this PSR in the main client and deprecate the old contract.
22
22
</p >
@@ -37,7 +37,7 @@ There are two kind of implementations:
37
37
- [ php-http/client-implementation] ( https://packagist.org/providers/php-http/client-implementation ) :
38
38
the synchronous implementation that waits for the response / error before returning from the ` sendRequest ` method.
39
39
- [ php-http/async-client-implementation] ( https://packagist.org/providers/php-http/async-client-implementation ) :
40
- the asynchronous implementation that immediately returns a ` Http\Client \Promise ` ,
40
+ the asynchronous implementation that immediately returns a ` Http\Promise \Promise ` ,
41
41
allowing to send several requests in parallel and handling responses later.
42
42
43
43
Check links above for the full list of implementations.
You can’t perform that action at this time.
0 commit comments