public class HttpClients
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static okhttp3.OkHttpClient |
createDefault(ICoreAuthenticationProvider auth)
Creates
OkHttpClient instance with default
configuration and provided authProvider |
static okhttp3.OkHttpClient |
createFromInterceptors(okhttp3.Interceptor[] interceptors)
Creates
OkHttpClient instance with interceptors |
static okhttp3.OkHttpClient.Builder |
custom()
Creates builder object for construction of custom
OkHttpClient instances. |
public static okhttp3.OkHttpClient.Builder custom()
OkHttpClient instances.public static okhttp3.OkHttpClient createDefault(ICoreAuthenticationProvider auth)
OkHttpClient instance with default
configuration and provided authProviderauth - Use IAuthenticationProvider instance provided while constructing http clientpublic static okhttp3.OkHttpClient createFromInterceptors(okhttp3.Interceptor[] interceptors)
OkHttpClient instance with interceptorsinterceptors - Use interceptors provided while constructing http client