You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/httplug.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,13 @@ Httplug is an abstraction for HTTP clients. There are two main use cases:
8
8
In both cases, the `Http\Client\HttpClient` provides a `sendRequest` method to send a PSR-7 `RequestInterface` and returns a PSR-7 `ResponseInterface`
9
9
or throws an exception that implements `Http\Client\Exception`.
10
10
11
-
There is also the `Http\Client\HttpAsyncClient`, available in [php-http/httplug-async](https://packagist.org/packages/php-http/httplug-async), which provides the `sendAsyncRequest` method to send a request asynchronously and returns a `Http\Client\Promise`.
11
+
There is also the `Http\Client\HttpAsyncClient` which provides the `sendAsyncRequest` method to send a request asynchronously and returns a `Http\Client\Promise`.
12
12
It can be used later to retrieve a PSR-7 `ResponseInterface` or an exception that implements `Http\Client\Exception`.
13
13
14
14
15
15
<pclass="text-warning">
16
-
Contract for the HttpAsyncClient is experimental until [PSR about Promise is released](https://groups.google.com/forum/?fromgroups#!topic/php-fig/wzQWpLvNSjs).
17
-
Once it is out, we will use this interface in the main client and deprecate the separated repository.
16
+
Contract for the `Http\Client\Promise` is temporary until [PSR is released](https://groups.google.com/forum/?fromgroups#!topic/php-fig/wzQWpLvNSjs).
17
+
Once it is out, we will use this PSR in the main client and deprecate the old contract.
18
18
</p>
19
19
20
20
See the [tutorial](tutorial.md) for a concrete example.
@@ -27,7 +27,7 @@ In the latter case, they will depend on the required client implementation, so y
27
27
There are two kind of implementation:
28
28
29
29
-[php-http/client-implementation](https://packagist.org/providers/php-http/client-implementation), the synchronous implementation that waits for the response / error before returning from the `sendRequest` method.
30
-
-[php-http/client-async-implementation](https://packagist.org/providers/php-http/async-client-implementation), the asynchronous implementation that immediately returns a `Http\Client\Promise`, allowing to send several requests in parallel and handling responses later.
30
+
-[php-http/async-client-implementation](https://packagist.org/providers/php-http/async-client-implementation), the asynchronous implementation that immediately returns a `Http\Client\Promise`, allowing to send several requests in parallel and handling responses later.
31
31
32
32
Check links above for the full list of implementations.
0 commit comments