DefaultHttpEngine
fun DefaultHttpEngine(timeoutMillis: Long, nsUrlSessionConfiguration: NSURLSessionConfiguration): 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
andOkHttpClient.readTimeout
on Js (Ktor), it is used to set both
HttpTimeoutCapabilityConfiguration.connectTimeoutMillis
andHttpTimeoutCapabilityConfiguration.requestTimeoutMillis
Parameters
timeoutMillis
: The timeout in milliseconds used both for the connection and the request.