DefaultHttpEngine
fun DefaultHttpEngine(timeoutMillis: Long, dataTaskFactory: DataTaskFactory)
Content copied to clipboard
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)
Content copied to clipboard