-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpClient] Fix decorating progress info in AsyncResponse #38633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Can you write a test for this issue? |
With this PR I have |
src/Symfony/Component/HttpClient/Response/TraceableResponse.php
Outdated
Show resolved
Hide resolved
Done.
We don't know how the response has been fetched (via
|
that's an option. |
For the record, I skipped collecting the content consciously back then: to prevent collecting streamed responses (aka potentially long or even infinite content, think SSE). |
51440f2
to
5c0d95d
Compare
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/HttpClient/DataCollector/HttpClientDataCollector.php
Show resolved
Hide resolved
073b73b
to
968c3a2
Compare
Thank you @jderusse. |
This PR reverts #38413, and send AsyncContext to onProgress callback.