MockEngine

HttpClientEngine for writing tests without network.

Constructors

Link copied to clipboard

Types

Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open suspend override fun execute(data: HttpRequestData): HttpResponseData
Link copied to clipboard
open fun install(client: HttpClient)

Properties

Link copied to clipboard
open override val config: MockEngineConfig
Link copied to clipboard
Link copied to clipboard
open override val dispatcher: CoroutineDispatcher
Link copied to clipboard

History of executed requests.

Link copied to clipboard

History of sent responses.

Link copied to clipboard