BatchingHttpEngine

class BatchingHttpEngine @JvmOverloads constructor(    val delegate: HttpEngine = DefaultHttpEngine(),     batchIntervalMillis: Long = 10,     maxBatchSize: Int = 10,     exposeErrorBody: Boolean = false) : HttpEngine

Constructors

Link copied to clipboard
fun BatchingHttpEngine(    delegate: HttpEngine = DefaultHttpEngine(),     batchIntervalMillis: Long = 10,     maxBatchSize: Int = 10,     exposeErrorBody: Boolean = false)

Functions

Link copied to clipboard
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

Properties

Link copied to clipboard
val delegate: HttpEngine