MockEngineConfig

Constructors

Link copied to clipboard
fun MockEngineConfig()

Functions

Link copied to clipboard
fun addHandler(handler: MockRequestHandler)

Add request handler to MockEngine

Properties

Link copied to clipboard
var dispatcher: CoroutineDispatcher

Dispatcher to use with MockEngine.

Link copied to clipboard
var pipelining: Boolean
Link copied to clipboard
var proxy: ProxyConfig?
Link copied to clipboard
val requestHandlers: MutableList<MockRequestHandler>

Request handlers. Responses are given back in order they were added to requestHandlers.

Link copied to clipboard
var reuseHandlers: Boolean = true

Should engine reuse handlers.

Link copied to clipboard
var threadsCount: Int