类的使用
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 newHttpComponentsHttpAsyncClientBuilderthat applies additional customization to the underlyingConnectionConfig.Builder.HttpComponentsHttpAsyncClientBuilder.withConnectionManagerCustomizer(Consumer<org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder> connectionManagerCustomizer) Return a newHttpComponentsHttpAsyncClientBuilderthat applies additional customization to the underlyingPoolingAsyncClientConnectionManagerBuilder.HttpComponentsHttpAsyncClientBuilder.withCustomizer(Consumer<org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder> customizer) Return a newHttpComponentsHttpAsyncClientBuilderthat applies additional customization to the underlyingHttpAsyncClientBuilder.HttpComponentsHttpAsyncClientBuilder.withDefaultRequestConfigCustomizer(Consumer<org.apache.hc.client5.http.config.RequestConfig.Builder> defaultRequestConfigCustomizer) Return a newHttpComponentsHttpAsyncClientBuilderthat applies additional customization to the underlyingRequestConfig.Builderused for default requests.HttpComponentsHttpAsyncClientBuilder.withTlsStrategyFactory(Function<SslBundle, org.apache.hc.core5.http.nio.ssl.TlsStrategy> tlsStrategyFactory) Return a newHttpComponentsHttpAsyncClientBuilderwith a replacementTlsStrategyfactory.