Skip to content

Commit 4bbfc5e

Browse files
rob-valorwilkinsona
authored andcommitted
Correct RestTemplateBuilder#defaultHeader javadoc
Replace reactor.netty.http.client.HttpClientRequest with org.springframework.http.client.ClientHttpRequest See gh-36614
1 parent c44e737 commit 4bbfc5e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
import java.util.function.Consumer;
3434
import java.util.function.Supplier;
3535

36-
import reactor.netty.http.client.HttpClientRequest;
37-
3836
import org.springframework.beans.BeanUtils;
3937
import org.springframework.http.client.AbstractClientHttpRequestFactoryWrapper;
4038
import org.springframework.http.client.ClientHttpRequest;
@@ -396,7 +394,7 @@ this.errorHandler, new BasicAuthentication(username, password, charset), this.de
396394

397395
/**
398396
* Add a default header that will be set if not already present on the outgoing
399-
* {@link HttpClientRequest}.
397+
* {@link ClientHttpRequest}.
400398
* @param name the name of the header
401399
* @param values the header values
402400
* @return a new builder instance

0 commit comments

Comments
 (0)