Closed
Description
In Spring Framework 5.0, we introduced the WebClient
: a new, reactive HTTP client. Compared to RestTemplate
, the previous generation, WebClient
improved HTTP access on two fronts:
- asynchrony, offered through reactive streams, and
- improved APIs, making it much easier to customize request and response.
With the advent of Project Loom, asynchrony can be obtained through standard, synchronous APIs. We should therefore introduce a version of WebClient
that offers the same improved APIs as the current reactive version, but exposes them in a synchronous manner.