类的使用
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 newHttpComponentsHttpClientBuilderthat applies additional customization to the underlyingPoolingHttpClientConnectionManagerBuilder.HttpComponentsHttpClientBuilder.withCustomizer(Consumer<org.apache.hc.client5.http.impl.classic.HttpClientBuilder> customizer) Return a newHttpComponentsHttpClientBuilderthat applies additional customization to the underlyingHttpClientBuilder.HttpComponentsHttpClientBuilder.withDefaultRequestConfigCustomizer(Consumer<org.apache.hc.client5.http.config.RequestConfig.Builder> defaultRequestConfigCustomizer) Return a newHttpComponentsHttpClientBuilderthat applies additional customization to the underlyingRequestConfig.Builderused for default requests.HttpComponentsHttpClientBuilder.withSocketConfigCustomizer(Consumer<org.apache.hc.core5.http.io.SocketConfig.Builder> socketConfigCustomizer) Return a newHttpComponentsHttpClientBuilderthat applies additional customization to the underlyingSocketConfig.Builder.HttpComponentsHttpClientBuilder.withTlsSocketStrategyFactory(Function<SslBundle, org.apache.hc.client5.http.ssl.TlsSocketStrategy> tlsSocketStrategyFactory) Return a newHttpComponentsHttpClientBuilderwith a replacementTlsSocketStrategyfactory.