From 71cff04c4663693eeda3fffaa17476a9b90a8731 Mon Sep 17 00:00:00 2001 From: Yanick Witschi Date: Mon, 21 Oct 2019 17:52:18 +0200 Subject: [PATCH] Documented $response->getInfo('canceled') --- components/http_client.rst | 3 +++ 1 file changed, 3 insertions(+) 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 ~~~~~~~~~~~~~~~~~~~