Add RestTemplate support for HTTP interface client
See gh-30117
This commit is contained in:
committed by
rstoyanchev
parent
bf82ed7186
commit
268f3c853e
@@ -25,10 +25,10 @@ import org.springframework.http.HttpMethod;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.web.reactive.function.client.WebClient;
|
||||
import org.springframework.web.service.invoker.AbstractReactorHttpExchangeAdapter;
|
||||
import org.springframework.web.service.invoker.HttpRequestValues;
|
||||
import org.springframework.web.service.invoker.HttpServiceProxyFactory;
|
||||
import org.springframework.web.service.invoker.ReactorHttpExchangeAdapter;
|
||||
import org.springframework.web.service.invoker.AbstractReactorHttpExchangeAdapter;
|
||||
|
||||
/**
|
||||
* {@link ReactorHttpExchangeAdapter} that enables an {@link HttpServiceProxyFactory}
|
||||
@@ -132,4 +132,8 @@ public final class WebClientAdapter extends AbstractReactorHttpExchangeAdapter {
|
||||
return new WebClientAdapter(webClient);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsRequestAttributes() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,7 +41,8 @@ import java.util.function.Consumer
|
||||
* @author DongHyeon Kim
|
||||
* @author Sebastien Deleuze
|
||||
*/
|
||||
class WebClientHttpServiceProxyKotlinTests {
|
||||
@Suppress("DEPRECATION")
|
||||
class KotlinWebClientHttpServiceProxyTests {
|
||||
|
||||
private lateinit var server: MockWebServer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user