接口 ClientHttpConnector

所有已知实现类:
HttpComponentsClientHttpConnector, JdkClientHttpConnector, JettyClientHttpConnector, ReactorClientHttpConnector, ReactorNetty2ClientHttpConnector

public interface ClientHttpConnector
Abstraction over HTTP clients driving the underlying HTTP client to connect to the origin server and provide all necessary infrastructure to send a ClientHttpRequest and receive a ClientHttpResponse.
从以下版本开始:
4.0
作者:
Brian Clozel
  • 方法概要

    修饰符和类型
    方法
    说明
    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 and apply the given requestCallback when the HTTP request of the underlying API can be initialized and written to.