Live blogging from SymfonyLive London 2019
This commit is contained in:
parent
7615aae25d
commit
7aabce05e9
|
@ -245,3 +245,16 @@ foreach ($client->stream($responses) as $response => $chunk) {
|
|||
* `Stream` has second argument, max number of seconds to wait before yielding a timeout chunk
|
||||
* `ResponseInterface::getInfo()` - get response headers, redirect count and URL, start time, HTTP method and code, user data and URL
|
||||
* `getInfo('debug')` - displays debug information
|
||||
|
||||
### The components
|
||||
|
||||
* `NativeHttpClient` and `CurlHttpCleint`
|
||||
- both provide 100% contracts
|
||||
- secure directs
|
||||
- extended (time) info
|
||||
- transparent HTTP compression and (de)chunking
|
||||
- automatic HTTP proxy configuration via env vars
|
||||
* NativeHttpClient is most portable, works for everyone
|
||||
- based on HTTP stream wrapper with fixed redirect logic
|
||||
- blocking until response headers arrive
|
||||
-
|
||||
|
|
Reference in a new issue