类 JdkHttpClientBuilder
java.lang.Object
org.springframework.boot.http.client.JdkHttpClientBuilder
Builder that can be used to create a JDK
HttpClient.- 从以下版本开始:
- 3.5.0
- 作者:
- Phillip Webb, Andy Wilkinson, Scott Frederick
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build(HttpClientSettings settings) Build a newHttpClientinstance with the given settings applied.withCustomizer(Consumer<HttpClient.Builder> customizer) Return a newJdkHttpClientBuilderthat applies additional customization to the underlyingHttpClient.Builder.
-
构造器详细资料
-
JdkHttpClientBuilder
public JdkHttpClientBuilder()
-
-
方法详细资料
-
withCustomizer
Return a newJdkHttpClientBuilderthat applies additional customization to the underlyingHttpClient.Builder.- 参数:
customizer- the customizer to apply- 返回:
- a new
JdkHttpClientBuilderinstance
-
build
Build a newHttpClientinstance with the given settings applied.- 参数:
settings- the settings to apply- 返回:
- a new
HttpClientinstance
-