Interface HttpClientBuilder
- All Known Implementing Classes:
ApacheHttpClientBuilder, JdkHttpClientBuilder, OkHttpClientBuilder
public interface HttpClientBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()connectTimeout(Duration timeout) readTimeout(Duration timeout) Sets the read timeout of the HTTP client.
-
Method Details
-
connectTimeout
Duration connectTimeout() -
connectTimeout
-
readTimeout
Duration readTimeout() -
readTimeout
Sets the read timeout of the HTTP client.- Parameters:
timeout- the read timeout.Duration.ZEROmeans no read timeout.nullmeans the default of the HTTP client, which is not always "no read timeout".- Returns:
- this builder
-
build
HttpClient build()
-