We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent38d4328 commitbd0e02fCopy full SHA for bd0e02f
http_client.rst
@@ -2293,11 +2293,11 @@ cannot be resolved or the host was unreachable. The
2293
2294
In order to test errors that occur while a response is being streamed
2295
(that is, after the headers have already been received), provide the
2296
-responseasone of theiterable``body`` parts from
2297
-your ``MockResponse`` instance. You can either use an exception
2298
-directly, or yield theexception from a callback. For exceptions of
2299
-this kind,``getStatusCode()`` may indicate a success (200), but
2300
-accessing``getContent()`` fails.
+exception to ``MockResponse``aspart of the ``body``
+parameter. You can either use an exception directly, or yield the
+exception from a callback. For exceptions of this kind,
+``getStatusCode()`` may indicate a success (200), but accessing
+``getContent()`` fails.
2301
2302
The following example code illustrates all three options.
2303