Update outdated WebClientAdapter.createHttpServiceProxyFactory documentation

This commit is contained in:
Sébastien Deleuze 2022-11-14 11:16:16 +01:00
parent f50b472ceb
commit 91c6fac18a
1 changed files with 3 additions and 2 deletions

View File

@ -521,8 +521,9 @@ responses performed through the client:
.defaultStatusHandler(HttpStatusCode::isError, resp -> ...)
.build();
HttpServiceProxyFactory proxyFactory =
WebClientAdapter.createHttpServiceProxyFactory(webClient);
WebClientAdapter clientAdapter = WebClientAdapter.forClient(webClient);
HttpServiceProxyFactory factory = HttpServiceProxyFactory
.builder(clientAdapter).build();
----
For more details and options, such as suppressing error status codes, see the Javadoc of