Document how to discard response body with WebTestClient

This commit better documents the ways to discard the response body with
`WebTestClient`.

Closes gh-35953
This commit is contained in:
Brian Clozel
2025-12-19 16:40:11 +01:00
parent 7353ab41d2
commit 89ca8e6976
14 changed files with 616 additions and 302 deletions
@@ -702,7 +702,7 @@ public interface WebTestClient {
S attributes(Consumer<Map<String, Object>> attributesConsumer);
/**
* Perform the exchange.
* Perform the HTTP exchange and .
* @return a spec for expectations on the response
*/
ResponseSpec exchange();