From 4bbfc5e630fd1a63f9754a0690cf49c410f3b000 Mon Sep 17 00:00:00 2001 From: rob-valor <56135014+rob-valor@users.noreply.github.com> Date: Thu, 27 Jul 2023 17:10:59 +0200 Subject: [PATCH] Correct RestTemplateBuilder#defaultHeader javadoc Replace reactor.netty.http.client.HttpClientRequest with org.springframework.http.client.ClientHttpRequest See gh-36614 --- .../springframework/boot/web/client/RestTemplateBuilder.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java index 7b5e72aa0470..761221c60aa3 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java @@ -33,8 +33,6 @@ import java.util.function.Consumer; import java.util.function.Supplier; -import reactor.netty.http.client.HttpClientRequest; - import org.springframework.beans.BeanUtils; import org.springframework.http.client.AbstractClientHttpRequestFactoryWrapper; import org.springframework.http.client.ClientHttpRequest; @@ -396,7 +394,7 @@ this.errorHandler, new BasicAuthentication(username, password, charset), this.de /** * Add a default header that will be set if not already present on the outgoing - * {@link HttpClientRequest}. + * {@link ClientHttpRequest}. * @param name the name of the header * @param values the header values * @return a new builder instance