Class JdkHttpClientBuilder
java.lang.Object
org.springframework.boot.http.client.JdkHttpClientBuilder
Builder that can be used to create a JDK 
HttpClient.- Since:
 - 3.5.0
 - Author:
 - Phillip Webb, Andy Wilkinson, Scott Frederick
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbuild(@Nullable 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.withExecutor(Executor executor) Return a newJdkHttpClientBuilderthat uses the given executor with the underlyingHttpClient.Builder. 
- 
Constructor Details
- 
JdkHttpClientBuilder
public JdkHttpClientBuilder() 
 - 
 - 
Method Details
- 
withExecutor
Return a newJdkHttpClientBuilderthat uses the given executor with the underlyingHttpClient.Builder.- Parameters:
 executor- the executor to use- Returns:
 - a new 
JdkHttpClientBuilderinstance - Since:
 - 4.0.0
 
 - 
withCustomizer
Return a newJdkHttpClientBuilderthat applies additional customization to the underlyingHttpClient.Builder.- Parameters:
 customizer- the customizer to apply- Returns:
 - a new 
JdkHttpClientBuilderinstance 
 - 
build
Build a newHttpClientinstance with the given settings applied.- Parameters:
 settings- the settings to apply- Returns:
 - a new 
HttpClientinstance 
 
 -