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 8a2262e210
commit f73a5222f1
6 changed files with 216 additions and 25 deletions

View File

@@ -71,6 +71,10 @@ By default, responses with 4xx or 5xx status codes result in an error of type
.bodyToMono(Person.class);
----
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.