public class OkHttpClientWrapper extends Object implements HttpClientWrapper
| Modifier and Type | Class and Description |
|---|---|
static interface |
OkHttpClientWrapper.Config |
| Modifier and Type | Field and Description |
|---|---|
static String |
OK_WRAPPER_CONNECT_TIMEOUT_ENV |
static String |
OK_WRAPPER_READ_TIMEOUT_ENV |
static String |
OK_WRAPPER_WRITE_TIMEOUT_ENV |
| Modifier and Type | Method and Description |
|---|---|
static HttpClientWrapper |
build() |
static HttpClientWrapper |
build(OkHttpClientWrapper.Config config) |
okhttp3.Response |
execute(okhttp3.Request request) |
public static final String OK_WRAPPER_CONNECT_TIMEOUT_ENV
public static final String OK_WRAPPER_READ_TIMEOUT_ENV
public static final String OK_WRAPPER_WRITE_TIMEOUT_ENV
public static HttpClientWrapper build()
public static HttpClientWrapper build(OkHttpClientWrapper.Config config)
public okhttp3.Response execute(okhttp3.Request request)
throws IOException
execute in interface HttpClientWrapperIOExceptionCopyright © 2019. All rights reserved.