DefaultHttpEngine

fun DefaultHttpEngine(timeoutMillis: Long, nsUrlSessionConfiguration: NSURLSessionConfiguration): HttpEngine
actual fun DefaultHttpEngine(timeoutMillis: Long): HttpEngine
expect fun DefaultHttpEngine(timeoutMillis: Long): HttpEngine

Parameters

timeoutMillis

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

  • on iOS (NSURLRequest), it is used to set NSMutableURLRequest.setTimeoutInterval

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

  • on Js (Ktor), it is used to set both HttpTimeoutCapabilityConfiguration.connectTimeoutMillis and HttpTimeoutCapabilityConfiguration.requestTimeoutMillis

actual fun DefaultHttpEngine(timeoutMillis: Long): HttpEngine

Parameters

timeoutMillis

: The timeout in milliseconds used both for the connection and the request.

fun DefaultHttpEngine(httpCallFactory: <Error class: unknown class>): HttpEngine
fun DefaultHttpEngine(httpCallFactory: () -> <Error class: unknown class>): HttpEngine
fun DefaultHttpEngine(okHttpClient: <Error class: unknown class>): HttpEngine
actual fun DefaultHttpEngine(timeoutMillis: Long): HttpEngine
actual fun DefaultHttpEngine(timeoutMillis: Long): HttpEngine