public final class InternalNetworking
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static okhttp3.OkHttpClient |
sHttpClient |
static java.lang.String |
sUserAgent |
| Modifier and Type | Method and Description |
|---|---|
static void |
addHeadersToRequestBuilder(okhttp3.Request.Builder builder,
ANRequest request) |
static void |
enableLogging(HttpLoggingInterceptor.Level level) |
static okhttp3.OkHttpClient |
getClient() |
static okhttp3.OkHttpClient |
getDefaultClient() |
static okhttp3.Response |
performDownloadRequest(ANRequest request) |
static okhttp3.Response |
performSimpleRequest(ANRequest request) |
static okhttp3.Response |
performUploadRequest(ANRequest request) |
static void |
setClient(okhttp3.OkHttpClient okHttpClient) |
static void |
setClientWithCache(android.content.Context context) |
static void |
setUserAgent(java.lang.String userAgent) |
public static okhttp3.OkHttpClient sHttpClient
public static java.lang.String sUserAgent
public static okhttp3.Response performSimpleRequest(ANRequest request) throws ANError
ANErrorpublic static okhttp3.Response performDownloadRequest(ANRequest request) throws ANError
ANErrorpublic static okhttp3.Response performUploadRequest(ANRequest request) throws ANError
ANErrorpublic static okhttp3.OkHttpClient getClient()
public static void addHeadersToRequestBuilder(okhttp3.Request.Builder builder,
ANRequest request)
public static okhttp3.OkHttpClient getDefaultClient()
public static void setClientWithCache(android.content.Context context)
public static void setUserAgent(java.lang.String userAgent)
public static void setClient(okhttp3.OkHttpClient okHttpClient)
public static void enableLogging(HttpLoggingInterceptor.Level level)