Skip to content

Commit d7d445e

Browse files
committed
Updated README with 9.0.0 notes
1 parent 9a60076 commit d7d445e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,25 @@ client, a [PSR-17](https://www.php-fig.org/psr/psr-17/) factory and the [HttpAsy
1717
interface with [Promise](https://docs.php-http.org/en/latest/components/promise.html) for
1818
asyncronous HTTP requestes.
1919

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+
2039
The architecture of the Transport is flexible and customizable, you can configure it
2140
using a [PSR-18](https://www.php-fig.org/psr/psr-18/) client, a [PSR-3](https://www.php-fig.org/psr/psr-3/)
2241
logger and a custom [NodePoolInterface](src/NodePool/NodePoolInterface.php), to manage

0 commit comments

Comments
 (0)