Package land.oras.utils
Class HttpClient.Builder
java.lang.Object
land.oras.utils.HttpClient.Builder
- Enclosing class:
- HttpClient
Builder for the HTTP client
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the clientstatic HttpClient.Builder
builder()
Build the clientwithSkipTlsVerify
(boolean skipTlsVerify) Skip the TLS verificationwithTimeout
(@Nullable Integer timeout) Set the timeout
-
Method Details
-
withTimeout
Set the timeout- Parameters:
timeout
- The timeout in seconds- Returns:
- The builder
-
withSkipTlsVerify
Skip the TLS verification- Parameters:
skipTlsVerify
- Skip TLS verification- Returns:
- The builder
-
builder
Build the client- Returns:
- The client
-
build
Build the client- Returns:
- The client
-