Package land.oras.auth
Class HttpClient.Builder
java.lang.Object
land.oras.auth.HttpClient.Builder
- Enclosing class:
- HttpClient
Builder for the HTTP client
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the clientstatic HttpClient.Builderbuilder()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
-