Live blogging from SymfonyLive London 2019
This commit is contained in:
parent
804c67968c
commit
be97479321
|
@ -249,12 +249,19 @@ foreach ($client->stream($responses) as $response => $chunk) {
|
||||||
### The components
|
### The components
|
||||||
|
|
||||||
* `NativeHttpClient` and `CurlHttpClient`
|
* `NativeHttpClient` and `CurlHttpClient`
|
||||||
- both provide 100% contracts
|
- both provide
|
||||||
- secure directs
|
+ 100% contracts
|
||||||
- extended (time) info
|
+ secure directs
|
||||||
- transparent HTTP compression and (de)chunking
|
+ extended (time) info
|
||||||
- automatic HTTP proxy configuration via env vars
|
+ transparent HTTP compression and (de)chunking
|
||||||
* `NativeHttpClient` is most portable, works for everyone
|
+ automatic HTTP proxy configuration via env vars
|
||||||
- based on HTTP stream wrapper with fixed redirect logic
|
#### `NativeHttpClient`
|
||||||
- blocking until response headers arrive
|
- is most portable, works for everyone
|
||||||
-
|
- based on HTTP stream wrapper with fixed redirect logic
|
||||||
|
- blocking until response headers arrive
|
||||||
|
|
||||||
|
#### `CurlHttpClient`
|
||||||
|
- Requires ext-curl with fixed redirection logic
|
||||||
|
- Multiplexing response headers and bodies
|
||||||
|
- Leverages HTTP/2 and PUSH when available
|
||||||
|
- Keeps connections open also between synchronous requests, no DNS resolution so things are faster
|
||||||
|
|
Reference in a new issue