File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,25 @@ client, a [PSR-17](https://www.php-fig.org/psr/psr-17/) factory and the [HttpAsy
17
17
interface with [ Promise] ( https://docs.php-http.org/en/latest/components/promise.html ) for
18
18
asyncronous HTTP requestes.
19
19
20
+ Starting from 9.0.0 version, if no PSR-18 clients are discovered, the library uses a
21
+ default [ custom HTTP client] ( src/Client/Curl.php ) based on [ cURL] ( https://curl.se/ ) .
22
+ This client relies on the [ cURL php extension] ( https://www.php.net/manual/en/book.curl.php )
23
+ that must be installed.
24
+ Moreover, this client does ** not** implement the [ HttpAsyncClient] ( https://github.com/php-http/httplug/blob/master/src/HttpAsyncClient.php )
25
+ interface, which means you won't be able to send asynchronous requests.
26
+ If you need support for asynchronous requests, consider installing a PST-18 HTTP client like
27
+ [ Guzzle] ( https://github.com/guzzle/guzzle ) :
28
+
29
+ ``` bash
30
+ composer require guzzlehttp/guzzle
31
+ ```
32
+
33
+ or [ Symfony HTTP Client] ( https://github.com/symfony/http-client ) :
34
+
35
+ ``` bash
36
+ composer require symfony/http-client
37
+ ```
38
+
20
39
The architecture of the Transport is flexible and customizable, you can configure it
21
40
using a [ PSR-18] ( https://www.php-fig.org/psr/psr-18/ ) client, a [ PSR-3] ( https://www.php-fig.org/psr/psr-3/ )
22
41
logger and a custom [ NodePoolInterface] ( src/NodePool/NodePoolInterface.php ) , to manage
You can’t perform that action at this time.
0 commit comments