This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/HttpClient
Fabien Potencier fc3095ff2f bug #37927 [HttpClient] fix chaining promises returned by HttplugClient (CthulhuDen)
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
-------

75043a1fb0 [HttpClient] fix chaining promises returned by HttplugClient
2020-08-26 13:34:52 +02:00
..
Chunk [HttpClient] add TimeoutExceptionInterface 2020-05-09 20:37:03 +02:00
DataCollector Merge branch '5.0' 2020-02-11 15:27:37 +01:00
DependencyInjection Drop useless executable bit 2019-11-16 08:59:35 -10:00
Exception [HttpClient] add TimeoutExceptionInterface 2020-05-09 20:37:03 +02:00
Internal [HttpClient] fix casting TraceableResponse to php streams 2020-06-28 16:07:40 +02:00
Response bug #37927 [HttpClient] fix chaining promises returned by HttplugClient (CthulhuDen) 2020-08-26 13:34:52 +02:00
Tests [HttpClient] fix chaining promises returned by HttplugClient 2020-08-26 12:50:35 +02:00
.gitattributes add missing gitattributes for phpunit-bridge 2020-03-27 17:54:36 +01:00
.gitignore [HttpClient] Add .gitignore file 2019-09-16 14:30:38 +02:00
AmpHttpClient.php [HttpClient] disable AMP's inactivity timeout, we deal with it on our own already 2020-06-10 17:30:04 +02:00
CachingHttpClient.php Leverage PHP8's get_debug_type() 2020-03-16 17:46:21 +01:00
CHANGELOG.md [HttpClient] made HttpClient::create() return an AmpHttpClient when amphp/http-client is found but curl is not or too old 2020-03-12 18:24:09 +01:00
composer.json Merge branch '5.0' into 5.1 2020-05-20 19:43:50 +02:00
CurlHttpClient.php Merge branch '5.0' into 5.1 2020-07-03 20:06:49 +02:00
HttpClient.php [HttpClient] Issue notice when NativeHttpClient is used 2020-03-23 12:34:08 +01:00
HttpClientTrait.php Merge branch '5.0' 2020-04-12 18:48:26 +02:00
HttplugClient.php Merge branch '5.0' into 5.1 2020-07-06 15:23:11 +02:00
HttpOptions.php [HttpClient] allow arbitrary JSON values in requests 2019-11-07 13:44:51 +01:00
LICENSE Update year in license files 2020-01-01 12:51:43 +01:00
MockHttpClient.php Merge branch '5.0' 2020-03-17 21:06:25 +01:00
NativeHttpClient.php Merge branch '5.0' 2020-03-17 21:06:25 +01:00
NoPrivateNetworkHttpClient.php Small update in our internal terminology 2020-06-18 20:43:12 +02:00
phpunit.xml.dist [HttpClient] introduce the component 2019-03-07 17:16:39 +01:00
Psr18Client.php [HttpClient] fix casting TraceableResponse to php streams 2020-06-28 16:07:40 +02:00
README.md Remove experimental notice from components 2019-07-11 11:03:49 +02:00
ScopingHttpClient.php Add LoggerAwareInterface to ScopingHttpClient and TraceableHttpClient 2020-01-09 09:41:13 +02:00
TraceableHttpClient.php [HttpClient] preserve the identity of responses streamed by TraceableHttpClient 2020-05-10 09:16:11 +02:00

HttpClient component

The HttpClient component provides powerful methods to fetch HTTP resources synchronously or asynchronously.

Resources