类的使用
org.springframework.boot.http.client.HttpComponentsHttpClientBuilder
-
org.springframework.boot.http.client中HttpComponentsHttpClientBuilder的使用
修饰符和类型方法说明HttpComponentsHttpClientBuilder.withConnectionManagerCustomizer
(Consumer<org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManagerBuilder> connectionManagerCustomizer) Return a newHttpComponentsHttpClientBuilder
that applies additional customization to the underlyingPoolingHttpClientConnectionManagerBuilder
.HttpComponentsHttpClientBuilder.withCustomizer
(Consumer<org.apache.hc.client5.http.impl.classic.HttpClientBuilder> customizer) Return a newHttpComponentsHttpClientBuilder
that applies additional customization to the underlyingHttpClientBuilder
.HttpComponentsHttpClientBuilder.withDefaultRequestConfigCustomizer
(Consumer<org.apache.hc.client5.http.config.RequestConfig.Builder> defaultRequestConfigCustomizer) Return a newHttpComponentsHttpClientBuilder
that applies additional customization to the underlyingRequestConfig.Builder
used for default requests.HttpComponentsHttpClientBuilder.withSocketConfigCustomizer
(Consumer<org.apache.hc.core5.http.io.SocketConfig.Builder> socketConfigCustomizer) Return a newHttpComponentsHttpClientBuilder
that applies additional customization to the underlyingSocketConfig.Builder
.HttpComponentsHttpClientBuilder.withTlsSocketStrategyFactory
(Function<SslBundle, org.apache.hc.client5.http.ssl.TlsSocketStrategy> tlsSocketStrategyFactory) Return a newHttpComponentsHttpClientBuilder
with a replacementTlsSocketStrategy
factory.