MockEngineConfig

class MockEngineConfig : HttpClientEngineConfig

HttpClientEngineConfig for MockEngine.

Constructors

<init>

MockEngineConfig()

HttpClientEngineConfig for MockEngine.

Properties

requestHandlers

val requestHandlers: MutableList<MockRequestHandler>

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

reuseHandlers

var reuseHandlers: Boolean

Should engine reuse handlers.

Inherited Properties

pipelining

var pipelining: Boolean

Enable http pipelining advice.

proxy

var proxy: ProxyConfig?

Proxy address to use. Use system proxy by default.

response

val response: Nothing

threadsCount

var threadsCount: Int

Network threads count advice.

Functions

addHandler

fun addHandler(handler: MockRequestHandler): Unit

Add request handler to MockEngine