8000 fix namespace for promise · php-http/documentation@86fb3c1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 86fb3c1

Browse files
committed
fix namespace for promise
1 parent 33c4aab commit 86fb3c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/httplug/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ In both cases, the `Http\Client\HttpClient` provides a `sendRequest` method to s
99
and returns a PSR-7 `ResponseInterface`or throws an exception that implements `Http\Client\Exception`.
1010

1111
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`.
1313

1414
The promise allows to specify handlers for a PSR-7 `ResponseInterface`
1515
or an exception that implements `Http\Client\Exception`.
1616

1717

1818
<p class="text-warning">
19-
Contract for the `Http\Client\Promise` is temporary until
19+
Contract for the `Http\Promise\Promise` is temporary until
2020
[PSR is released](https://groups.google.com/forum/?fromgroups#!topic/php-fig/wzQWpLvNSjs).
2121
Once it is out, we will use this PSR in the main client and deprecate the old contract.
2222
</p>
@@ -37,7 +37,7 @@ There are two kind of implementations:
3737
- [php-http/client-implementation](https://packagist.org/providers/php-http/client-implementation):
3838
the synchronous implementation that waits for the response / error before returning from the `sendRequest` method.
3939
- [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`,
4141
allowing to send several requests in parallel and handling responses later.
4242

4343
Check links above for the full list of implementations.

0 commit comments

Comments
 (0)
0