Skip to content

Commit ea84c55

Browse files
committed
Documented $response->getInfo('canceled')
1 parent 5643853 commit ea84c55

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)