public class TmmHttpClient extends Object
Constructor and Description |
---|
TmmHttpClient() |
Modifier and Type | Method and Description |
---|---|
static okhttp3.OkHttpClient |
getHttpClient()
Gets the pre-configured http client.
|
static okhttp3.OkHttpClient.Builder |
newBuilder()
create a new OkHttpClient.Builder along with all our settings set
|
static okhttp3.OkHttpClient.Builder |
newBuilder(boolean withCache)
create a new OkHttpClient.Builder along with all our settings set
|
static void |
recreateHttpClient()
re-create the http client due to settings changes
|
public static final String CACHE_DIR
public static okhttp3.OkHttpClient.Builder newBuilder()
public static okhttp3.OkHttpClient.Builder newBuilder(boolean withCache)
withCache
- create the builder with a cache setpublic static okhttp3.OkHttpClient getHttpClient()
public static void recreateHttpClient()
Copyright © 2012–2019 tinyMediaManager. All rights reserved.