public class ReactorClientHttpConnector extends Object implements ClientHttpConnector
ClientHttpConnectorHttpClient| Constructor and Description |
|---|
ReactorClientHttpConnector() |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<ClientHttpResponse> |
connect(HttpMethod method,
URI uri,
Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback)
Connect to the origin server using the given
HttpMethod and
URI, then apply the given requestCallback on the
ClientHttpRequest once the connection has been established. |
public reactor.core.publisher.Mono<ClientHttpResponse> connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback)
ClientHttpConnectorHttpMethod and
URI, then apply the given requestCallback on the
ClientHttpRequest once the connection has been established.
Return a publisher of the ClientHttpResponse.
connect in interface ClientHttpConnectormethod - the HTTP request methoduri - the HTTP request URIrequestCallback - a function that prepares and writes the request,
returning a publisher that signals when it's done interacting with the
request. Implementations should return a Mono<Void> by calling
ReactiveHttpOutputMessage.writeWith(org.reactivestreams.Publisher<org.springframework.core.io.buffer.DataBuffer>) or ReactiveHttpOutputMessage.setComplete().ClientHttpResponse