-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Documented $response->getInfo('canceled') #12526
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(after minor typo is fixed)
components/http_client.rst
Outdated
@@ -417,6 +417,9 @@ Or throw an exception from a progress callback:: | |||
The exception will be wrapped in an instance of ``TransportExceptionInterface`` | |||
and will abort the request. | |||
|
|||
In case the response was canceled using ``$response->cancel()``, | |||
``$response->getInfo('canceled')`` will return `true`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double backticks around true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh man...
Fixed, sorry. |
@OskarStark note for mergers: we must add |
f366d19
to
71cff04
Compare
Thank you Yanick. |
This PR was squashed before being merged into the 4.4 branch (closes #12526). Discussion ---------- Documented $response->getInfo('canceled') Documented the new `canceled` information introduced in symfony/symfony#34044. Reading the docs, I wonder if we need to catch any `Throwable` and also set `canceled` to `true` @nicolas-grekas? Commits ------- 71cff04 Documented $response->getInfo('canceled')
I added the missing |
Documented the new
canceled
information introduced in symfony/symfony#34044.Reading the docs, I wonder if we need to catch any
Throwable
and also setcanceled
totrue
@nicolas-grekas?