0219834a2d
This PR was merged into the 4.3 branch.
Discussion
----------
[HttpClient] fix dealing with 1xx informational responses
| Q | A
| ------------- | ---
| Branch? | 4.3
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
I never had a look at 1xx status codes until today.
This PR fixes reading them when using curl.
If one wonders:
- `NativeHttpClient` uses `fopen()`, which skips informational parts as allowed by the HTTP spec and doesn't give any way to access their response headers.
- `CurlHttpClient` allows reading informational responses using the progress callback or via the getInfo() method. That's the way if you need to implement e.g. HTTP 103 early hints.
Commits
-------
|
||
---|---|---|
.. | ||
Chunk | ||
Exception | ||
Internal | ||
Response | ||
Tests | ||
CachingHttpClient.php | ||
CHANGELOG.md | ||
composer.json | ||
CurlHttpClient.php | ||
HttpClient.php | ||
HttpClientTrait.php | ||
HttpOptions.php | ||
LICENSE | ||
MockHttpClient.php | ||
NativeHttpClient.php | ||
phpunit.xml.dist | ||
Psr18Client.php | ||
README.md | ||
ScopingHttpClient.php |
HttpClient component
The HttpClient component provides powerful methods to fetch HTTP resources synchronously or asynchronously.
This Component is experimental. Experimental features are not covered by Symfony's Backward Compatibility Promise.