public class OkHttpHooker extends Object
| Modifier and Type | Field and Description |
|---|---|
static okhttp3.Dns |
globalDns |
static okhttp3.EventListener.Factory |
globalEventFactory |
static List<okhttp3.Interceptor> |
globalInterceptors |
static List<okhttp3.Interceptor> |
globalNetworkInterceptors |
| Constructor and Description |
|---|
OkHttpHooker() |
| Modifier and Type | Method and Description |
|---|---|
static void |
installDns(okhttp3.Dns dns) |
static void |
installEventListenerFactory(okhttp3.EventListener.Factory factory) |
static void |
installInterceptor(okhttp3.Interceptor interceptor) |
static void |
installNetworkInterceptors(okhttp3.Interceptor networkInterceptor) |
public static okhttp3.EventListener.Factory globalEventFactory
public static okhttp3.Dns globalDns
public static List<okhttp3.Interceptor> globalInterceptors
public static List<okhttp3.Interceptor> globalNetworkInterceptors
public static void installEventListenerFactory(okhttp3.EventListener.Factory factory)
public static void installDns(okhttp3.Dns dns)
public static void installInterceptor(okhttp3.Interceptor interceptor)
public static void installNetworkInterceptors(okhttp3.Interceptor networkInterceptor)