类的使用
org.springframework.boot.http.client.HttpComponentsHttpAsyncClientBuilder
-
org.springframework.boot.http.client中HttpComponentsHttpAsyncClientBuilder的使用
修饰符和类型方法说明HttpComponentsHttpAsyncClientBuilder.withConnectionConfigCustomizer
(Consumer<org.apache.hc.client5.http.config.ConnectionConfig.Builder> connectionConfigCustomizer) Return a newHttpComponentsHttpAsyncClientBuilder
that applies additional customization to the underlyingConnectionConfig.Builder
.HttpComponentsHttpAsyncClientBuilder.withConnectionManagerCustomizer
(Consumer<org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder> connectionManagerCustomizer) Return a newHttpComponentsHttpAsyncClientBuilder
that applies additional customization to the underlyingPoolingAsyncClientConnectionManagerBuilder
.HttpComponentsHttpAsyncClientBuilder.withCustomizer
(Consumer<org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder> customizer) Return a newHttpComponentsHttpAsyncClientBuilder
that applies additional customization to the underlyingHttpAsyncClientBuilder
.HttpComponentsHttpAsyncClientBuilder.withDefaultRequestConfigCustomizer
(Consumer<org.apache.hc.client5.http.config.RequestConfig.Builder> defaultRequestConfigCustomizer) Return a newHttpComponentsHttpAsyncClientBuilder
that applies additional customization to the underlyingRequestConfig.Builder
used for default requests.HttpComponentsHttpAsyncClientBuilder.withTlsStrategyFactory
(Function<SslBundle, org.apache.hc.core5.http.nio.ssl.TlsStrategy> tlsStrategyFactory) Return a newHttpComponentsHttpAsyncClientBuilder
with a replacementTlsStrategy
factory.