@@ -9,20 +9,18 @@ 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
-
18
- <p class =" text-warning " >
19
- Contract for the `Http\Client\Promise` is temporary until
17
+ !!! warning "Warning:"
18
+ Contract for the ` Http\Promise\Promise ` is temporary until
20
19
[ PSR is released] ( https://groups.google.com/forum/?fromgroups#!topic/php-fig/wzQWpLvNSjs ) .
21
20
Once it is out, we will use this PSR in the main client and deprecate the old contract.
22
- </p >
23
21
24
22
25
- See the [ tutorial] ( tutorial.md ) for a concrete example.
23
+ See the [ tutorial] ( httplug/ tutorial.md) for a concrete example.
26
24
27
25
28
26
## HTTPlug implementations
@@ -37,7 +35,7 @@ There are two kind of implementations:
37
35
- [ php-http/client-implementation] ( https://packagist.org/providers/php-http/client-implementation ) :
38
36
the synchronous implementation that waits for the response / error before returning from the ` sendRequest ` method.
39
37
- [ 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 ` ,
38
+ the asynchronous implementation that immediately returns a ` Http\Promise \Promise ` ,
41
39
allowing to send several requests in parallel and handling responses later.
42
40
43
41
Check links above for the full list of implementations.
@@ -48,7 +46,7 @@ Check links above for the full list of implementations.
48
46
When writing an application, you need to require a concrete
49
47
[ implementation] ( https://packagist.org/providers/php-http/client-implementation ) .
50
48
51
- See [ virtual package] ( virtual-package.md ) for more information on the topic of working with HTTPlug implementations.
49
+ See [ virtual package] ( httplug/ virtual-package.md) for more information on the topic of working with HTTPlug implementations.
52
50
53
51
54
52
## Installation in a reusable package
@@ -84,10 +82,10 @@ You should however always accept injecting the client instance to allow the user
84
82
You can find an example in the [ Discovery Component] ( /components/discovery ) documentation.
85
83
86
84
Users of your package will have to select a concrete adapter in their project to make your package installable.
87
- Best point them to the [ virtual package] ( virtual-package.md ) howto page.
85
+ Best point them to the [ virtual package] ( httplug/ virtual-package.md) howto page.
88
86
89
87
To be able to send requests, you should not depend on a specific PSR-7 implementation,
90
- but use the [ Message Factory Component] ( /components/ message-factory) system.
88
+ but use the [ Message Factory Component] ( message-factory.md ) system.
91
89
92
90
93
91
### Framework Integration
@@ -108,4 +106,4 @@ which in most cases affected every adapter as well).
108
106
109
107
In 2015, a decision has been made to move the library to it's own organization, so PHP HTTP was born.
110
108
111
- See [ migrating] ( migrating.md ) for a guide how to migrate your code from the Ivory adapter to HTTPlug.
109
+ See [ migrating] ( httplug/ migrating.md) for a guide how to migrate your code from the Ivory adapter to HTTPlug.
0 commit comments