Ensure client response is drained with onStatus hook

Issue: SPR-17473
This commit is contained in:
Rossen Stoyanchev
2018-11-08 13:26:41 -05:00
parent ed1d63dcc3
commit c187cb2fa1
6 changed files with 224 additions and 25 deletions

View File

@@ -294,6 +294,10 @@ as the following example shows:
----
====
When `onStatus` is used, if the response is expected to have content, then the `onStatus`
callback should consume it. If not, the content will be automatically drained to ensure
resources are released.