Correct RestTemplateBuilder#defaultHeader javadoc

Replace reactor.netty.http.client.HttpClientRequest with
org.springframework.http.client.ClientHttpRequest

See gh-36614
pull/37210/head
rob-valor 1 year ago committed by Andy Wilkinson
parent c44e7376b4
commit 4bbfc5e630

@ -33,8 +33,6 @@ import java.util.Set;
import java.util.function.Consumer; import java.util.function.Consumer;
import java.util.function.Supplier; import java.util.function.Supplier;
import reactor.netty.http.client.HttpClientRequest;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.http.client.AbstractClientHttpRequestFactoryWrapper; import org.springframework.http.client.AbstractClientHttpRequestFactoryWrapper;
import org.springframework.http.client.ClientHttpRequest; import org.springframework.http.client.ClientHttpRequest;
@ -396,7 +394,7 @@ public class RestTemplateBuilder {
/** /**
* Add a default header that will be set if not already present on the outgoing * 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 name the name of the header
* @param values the header values * @param values the header values
* @return a new builder instance * @return a new builder instance

Loading…
Cancel
Save