From 3971632415d61f4cd73b187e7c7619c6f1beb3da Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Tue, 16 Apr 2024 11:43:09 +0200 Subject: [PATCH] Reintroduce SimpleClientHttpRequestFactory limitations Closes gh-32641 --- .../modules/ROOT/pages/integration/rest-clients.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc b/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc index d4a511fe0f..2be5a64679 100644 --- a/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc +++ b/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc @@ -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`. 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]] == `WebClient`