DefaultHttpEngine

fun DefaultHttpEngine(timeoutMillis: Long, dataTaskFactory: DataTaskFactory)
actual fun DefaultHttpEngine(timeoutMillis: Long)
expect fun DefaultHttpEngine(timeoutMillis: Long)

Parameters

timeoutMillis

: The timeout interval to use when connecting or waiting for additional data.

  • on iOS, it is used to set NSMutableURLRequest.timeoutIntervalForRequest

  • on Android, it is used to set both OkHttpClient.connectTimeout and OkHttpClient.readTimeout

  • on Js, it is used to set both connectTimeoutMillis, and socketTimeoutMillis

fun DefaultHttpEngine(connectTimeoutMillis: Long, readTimeoutMillis: Long)
actual fun DefaultHttpEngine(timeoutMillis: Long)
fun DefaultHttpEngine(connectTimeout: Long, readTimeout: Long)
fun DefaultHttpEngine(okHttpClient: OkHttpClient)
fun DefaultHttpEngine(httpCallFactory: Call.Factory)
actual fun DefaultHttpEngine(timeoutMillis: Long)