Update docs on ClientResponse

Issue: SPR-16200
This commit is contained in:
Rossen Stoyanchev
2017-11-15 17:08:57 -08:00
parent 19a9bc4747
commit 8e21023f28
3 changed files with 15 additions and 11 deletions

View File

@@ -99,10 +99,11 @@ Note that unlike `retrieve()`, with `exchange()` there are no automatic error si
[CAUTION]
====
When using `exchange()` you must always use any of the body or entity methods of
When using `exchange()` you must always use any of the body or toEntity methods of
`ClientResponse` to ensure resources are released and to avoid potential issues with HTTP
connection pooling. If not interested in the response body use `bodyToMono(Void.class)`
to complete.
connection pooling. You can use `bodyToMono(Void.class)` if no response content is
expected. However keep in mind that if the response does have content, the connection
will be closed and will not be placed back in the pool.
====