|
|
@ -58,7 +58,7 @@ import org.springframework.util.ClassUtils; |
|
|
|
* static imports: ClientWebRequestBuilder.*, ResponseExtractors.* |
|
|
|
* static imports: ClientWebRequestBuilder.*, ResponseExtractors.* |
|
|
|
* |
|
|
|
* |
|
|
|
* // should be shared between HTTP calls
|
|
|
|
* // should be shared between HTTP calls
|
|
|
|
* WebClient client = new WebClient(new ReactorHttpClient()); |
|
|
|
* WebClient client = new WebClient(new ReactorClientHttpConnector()); |
|
|
|
* |
|
|
|
* |
|
|
|
* Mono<String> result = client |
|
|
|
* Mono<String> result = client |
|
|
|
* .perform(get("http://example.org/resource").accept(MediaType.TEXT_PLAIN)) |
|
|
|
* .perform(get("http://example.org/resource").accept(MediaType.TEXT_PLAIN)) |
|
|
|