OkHttpConfig
class OkHttpConfig : HttpClientEngineConfig
Configuration for OkHttp client engine.
Constructors
OkHttpConfig() Configuration for OkHttp client engine. |
Properties
var preconfigured: OkHttpClient? Preconfigured OkHttpClient instance instead of configuring one. |
Inherited Properties
var The CoroutineDispatcher that will be used for the client requests. |
|
var pipelining: Boolean Enable http pipelining advice. |
|
val response: HttpResponseConfig Configuration for http response. |
|
var threadsCount: Int Network threads count advice. |
Functions
fun addInterceptor(interceptor: Interceptor): Unit Add Interceptor to OkHttp client. |
|
fun addNetworkInterceptor(interceptor: Interceptor): Unit Add network Interceptor to OkHttp client. |
|
Configure OkHttpClient using OkHttpClient.Builder. |