OkHttpClientProvider

Helper class that provides the same OkHttpClient instance that will be used for all networking requests.

Functions

Link copied to clipboard
fun createClient(): OkHttpClient
fun createClient(context: Context): OkHttpClient
Link copied to clipboard
fun createClientBuilder(): OkHttpClient.Builder
fun createClientBuilder(context: Context): OkHttpClient.Builder
fun createClientBuilder(context: Context, cacheSize: Int): OkHttpClient.Builder
Link copied to clipboard
fun getOkHttpClient(): OkHttpClient