fc3095ff2f
This PR was merged into the 5.1 branch.
Discussion
----------
[HttpClient] fix chaining promises returned by HttplugClient
| Q | A
| ------------- | ---
| Branch? | 5.1
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix #37925
| License | MIT
Guzzle runtime does not play too well with foreign promises, which can be fixed by wrapping them with `promise_for`.
Added failing test case from #37925 and suggested fix.
Should not break BC because `then` callback results get resolved before being passed to next `then` callback or returned from `wait`.
Commits
-------
|
||
---|---|---|
.. | ||
Chunk | ||
DataCollector | ||
DependencyInjection | ||
Exception | ||
Internal | ||
Response | ||
Tests | ||
.gitattributes | ||
.gitignore | ||
AmpHttpClient.php | ||
CachingHttpClient.php | ||
CHANGELOG.md | ||
composer.json | ||
CurlHttpClient.php | ||
HttpClient.php | ||
HttpClientTrait.php | ||
HttplugClient.php | ||
HttpOptions.php | ||
LICENSE | ||
MockHttpClient.php | ||
NativeHttpClient.php | ||
NoPrivateNetworkHttpClient.php | ||
phpunit.xml.dist | ||
Psr18Client.php | ||
README.md | ||
ScopingHttpClient.php | ||
TraceableHttpClient.php |
HttpClient component
The HttpClient component provides powerful methods to fetch HTTP resources synchronously or asynchronously.