@Configuration @EnableConfigurationProperties(value=HttpRequestFunctionProperties.class) public class HttpRequestFunctionConfiguration extends Object
Function
that makes HTTP requests to a resource and for
each request, returns a ResponseEntity
.Modifier and Type | Class and Description |
---|---|
static class |
HttpRequestFunctionConfiguration.HttpRequestFunction
Function that accepts a
Flux<Message<?>> containing body and headers and
returns a Flux<ResponseEntity<?>> . |
Constructor and Description |
---|
HttpRequestFunctionConfiguration() |
Modifier and Type | Method and Description |
---|---|
HttpRequestFunctionConfiguration.HttpRequestFunction |
httpRequestFunction(org.springframework.web.reactive.function.client.WebClient webClient,
HttpRequestFunctionProperties properties) |
org.springframework.web.reactive.function.client.WebClient |
webClient(HttpRequestFunctionProperties properties) |
@Bean @ConditionalOnMissingBean(value=org.springframework.web.reactive.function.client.WebClient.class) public org.springframework.web.reactive.function.client.WebClient webClient(HttpRequestFunctionProperties properties)
@Bean public HttpRequestFunctionConfiguration.HttpRequestFunction httpRequestFunction(org.springframework.web.reactive.function.client.WebClient webClient, HttpRequestFunctionProperties properties)
Copyright © 2022. All rights reserved.