Package land.oras.utils
Class OrasHttpClient.Builder
java.lang.Object
land.oras.utils.OrasHttpClient.Builder
- Enclosing class:
- OrasHttpClient
Builder for the HTTP client
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the clientstatic OrasHttpClient.Builder
builder()
Build the clientwithAuthentication
(@Nullable AuthProvider authProvider) Set the authenticationwithSkipTlsVerify
(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
-
withAuthentication
Set the authentication- Parameters:
authProvider
- The auth provider- 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
-