Reintroduce SimpleClientHttpRequestFactory limitations

Closes gh-32641
This commit is contained in:
Arjen Poutsma 2024-04-16 11:43:09 +02:00
parent 1e54916119
commit 3971632415
1 changed files with 3 additions and 0 deletions

View File

@ -468,6 +468,9 @@ If no request factory is specified when the `RestClient` was built, it will use
Otherwise, if the `java.net.http` module is loaded, it will use Java's `HttpClient`. Otherwise, if the `java.net.http` module is loaded, it will use Java's `HttpClient`.
Finally, it will resort to the simple default. Finally, it will resort to the simple default.
TIP: Note that the `SimpleClientHttpRequestFactory` may raise an exception when accessing the status of a response that represents an error (e.g. 401).
If this is an issue, use any of the alternative request factories.
[[rest-webclient]] [[rest-webclient]]
== `WebClient` == `WebClient`