Skip to content

Commit c7ecd24

Browse files
committed
feature #12526 Documented $response->getInfo('canceled') (Toflar)
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')
2 parents 4a616f1 + 71cff04 commit c7ecd24

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/http_client.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,9 @@ Or throw an exception from a progress callback::
417417
The exception will be wrapped in an instance of ``TransportExceptionInterface``
418418
and will abort the request.
419419

420+
In case the response was canceled using ``$response->cancel()``,
421+
``$response->getInfo('canceled')`` will return ``true``.
422+
420423
Handling Exceptions
421424
~~~~~~~~~~~~~~~~~~~
422425

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy