DefaultHttpEngine

actual class DefaultHttpEngine : HttpEngine
expect class DefaultHttpEngine : HttpEngine
actual class DefaultHttpEngine : HttpEngine
actual class DefaultHttpEngine : HttpEngine

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

Constructors

Link copied to clipboard
fun DefaultHttpEngine(timeoutMillis: Long, dataTaskFactory: DataTaskFactory)
Link copied to clipboard
fun DefaultHttpEngine(connectTimeoutMillis: Long, readTimeoutMillis: Long)
fun DefaultHttpEngine(connectTimeout: Long, readTimeout: Long)
Link copied to clipboard
fun DefaultHttpEngine(okHttpClient: OkHttpClient)
Link copied to clipboard
fun DefaultHttpEngine(httpCallFactory: Call.Factory)
Link copied to clipboard
actual fun DefaultHttpEngine(timeoutMillis: Long)
expect fun DefaultHttpEngine(timeoutMillis: Long)
actual fun DefaultHttpEngine(timeoutMillis: Long)
actual fun DefaultHttpEngine(timeoutMillis: Long)

Functions

Link copied to clipboard
open override fun dispose()

Disposes any resources used by the HttpEngine

abstract fun dispose()

Disposes any resources used by the HttpEngine

open override fun dispose()

Disposes any resources used by the HttpEngine

open override fun dispose()

Disposes any resources used by the HttpEngine

Link copied to clipboard
open suspend override fun execute(request: HttpRequest): HttpResponse

Executes the given HttpRequest

abstract suspend fun execute(request: HttpRequest): HttpResponse

Executes the given HttpRequest

open suspend override fun execute(request: HttpRequest): HttpResponse

Executes the given HttpRequest

open suspend override fun execute(request: HttpRequest): HttpResponse

Executes the given HttpRequest

Properties

Link copied to clipboard
var disposed: Boolean = false