Skip to content

Commit 7d02963

Browse files
committed
Merge branch '4.4'
* 4.4: Add versionadded directive. refs #12525 Documented $response->getInfo('canceled')
2 parents 629bb0e + c82a7e1 commit 7d02963

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/http_client.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,13 @@ Or throw an exception from a progress callback::
405405
The exception will be wrapped in an instance of ``TransportExceptionInterface``
406406
and will abort the request.
407407

408+
In case the response was canceled using ``$response->cancel()``,
409+
``$response->getInfo('canceled')`` will return ``true``.
410+
411+
.. versionadded:: 4.4
412+
413+
The possibility to get information about canceled or not was introduced in Symfony 4.4.
414+
408415
Handling Exceptions
409416
~~~~~~~~~~~~~~~~~~~
410417

0 commit comments

Comments
 (0)