diff --git a/components/http_client.rst b/components/http_client.rst index c369c415340..942350f457f 100644 --- a/components/http_client.rst +++ b/components/http_client.rst @@ -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``. + Handling Exceptions ~~~~~~~~~~~~~~~~~~~