public interface ClientHttpConnector
ClientHttpRequest
and receive a ClientHttpResponse
.Modifier and Type | Method and Description |
---|---|
<any> |
connect(HttpMethod method,
java.net.URI uri,
java.util.function.Function<? super ClientHttpRequest,<any>> 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. |
<any> connect(HttpMethod method, java.net.URI uri, java.util.function.Function<? super ClientHttpRequest,<any>> requestCallback)
HttpMethod
and
URI
, then apply the given requestCallback
on the
ClientHttpRequest
once the connection has been established.
Return a publisher of the ClientHttpResponse
.
method
- 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(<any>)
or ReactiveHttpOutputMessage.setComplete()
.ClientHttpResponse