DefaultHttpEngine
fun DefaultHttpEngine(timeoutMillis: Long, nsUrlSessionConfiguration: <Error class: unknown class>): <Error class: unknown class>
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.
fun DefaultHttpEngine(httpCallFactory: () -> <Error class: unknown class>): <Error class: unknown class>