Skip to content

Commit 04dcb67

Browse files
committed
Improve HTTPlug documentation
1 parent e578b59 commit 04dcb67

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

docs/httplug/index.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ and returns a PSR-7 `ResponseInterface`or throws an exception that implements `H
1111
There is also the `Http\Client\HttpAsyncClient` which provides the `sendAsyncRequest` method to send
1212
a request asynchronously and returns a `Http\Client\Promise`.
1313

14-
It can be used later to retrieve a PSR-7 `ResponseInterface` or an exception that implements `Http\Client\Exception`.
14+
The promise allows to specify handlers for a PSR-7 `ResponseInterface`
15+
or an exception that implements `Http\Client\Exception`.
1516

1617

1718
<p class="text-warning">
@@ -41,12 +42,8 @@ There are two kind of implementations:
4142

4243
Check links above for the full list of implementations.
4344

44-
<p class="text-warning">
45-
Note: Until HTTPlug 1.0 becomes stable, we will focus on the Guzzle6 adapter.
46-
</p>
47-
4845

49-
## Usage in a project
46+
## Usage in an application
5047

5148
When writing an application, you need to require a concrete
5249
[implementation](https://packagist.org/providers/php-http/client-implementation).
@@ -59,7 +56,7 @@ See [virtual package](virtual-package.md) for more information on the topic of w
5956
In many cases, packages are designed to be reused from the very beginning.
6057
For example, API clients are usually used in other packages/applications, not on their own.
6158

62-
In these cases, they should **not rely on a concrete implementation** (like Guzzle 6),
59+
Reusable packages should **not rely on a concrete implementation** (like Guzzle 6),
6360
but only require any implementation of HTTPlug. HTTPlug uses the concept of virtual packages.
6461
Instead of depending on only the interfaces, which would be missing an implementation,
6562
or depending on one concrete implementation, you should depend on the virtual package `php-http/client-implementation`

0 commit comments

Comments
 (0)