HttpClients Class
- java.
lang. Object - com.
microsoft. graph. httpcore. HttpClients
- com.
public class HttpClients
Builder to get a custom HttpClient to be used for requests against Microsoft Graph
Method Summary
Modifier and Type | Method and Description |
---|---|
static okhttp3.OkHttpClient |
createDefault(IAuthenticationProvider auth)
Creates OkHttpClient instance with default configuration and provided auth |
static okhttp3.OkHttpClient |
createFromInterceptors(Interceptor[] interceptors)
Creates OkHttpClient instance with interceptors |
static okhttp3.OkHttpClient.Builder |
custom()
Creates builder object for construction of custom OkHttpClient instances. |
Methods inherited from java.lang.Object
Method Details
createDefault
public static OkHttpClient createDefault(IAuthenticationProvider auth)
Creates OkHttpClient instance with default configuration and provided authProvider
Parameters:
Returns:
createFromInterceptors
public static OkHttpClient createFromInterceptors(Interceptor[] interceptors)
Creates OkHttpClient instance with interceptors
Parameters:
Returns:
custom
public static OkHttpClient.Builder custom()
Creates builder object for construction of custom OkHttpClient instances.
Returns: