From b56b95d4292793db27d11ededc3320f70126d662 Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Tue, 21 Jun 2022 14:00:55 +0200 Subject: [PATCH] Add Apache HttpClient WebClient support to documentation --- .../spring-boot-docs/src/docs/asciidoc/io/rest-client.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/io/rest-client.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/io/rest-client.adoc index a8cc35099a..618c8ecf7d 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/io/rest-client.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/io/rest-client.adoc @@ -75,11 +75,11 @@ include::{docs-java}/io/restclient/webclient/MyService.java[] [[io.rest-client.webclient.runtime]] ==== WebClient Runtime Spring Boot will auto-detect which `ClientHttpConnector` to use to drive `WebClient`, depending on the libraries available on the application classpath. -For now, Reactor Netty and Jetty RS client are supported. +For now, Reactor Netty, Jetty RS client and Apache HttpClient are supported. The `spring-boot-starter-webflux` starter depends on `io.projectreactor.netty:reactor-netty` by default, which brings both server and client implementations. If you choose to use Jetty as a reactive server instead, you should add a dependency on the Jetty Reactive HTTP client library, `org.eclipse.jetty:jetty-reactive-httpclient`. -Using the same technology for server and client has it advantages, as it will automatically share HTTP resources between client and server. +Using the same technology for server and client has its advantages, as it will automatically share HTTP resources between client and server. Developers can override the resource configuration for Jetty and Reactor Netty by providing a custom `ReactorResourceFactory` or `JettyResourceFactory` bean - this will be applied to both clients and servers.