MultiClientProvider

interface MultiClientProvider : ClientProvider

A ClientProvider that can provide clients based on an application name.

By default, the client and createClient functions that come from ClientProvider (i.e. the ones that do not take application names) will implicitly use the null application name.

Inheritors

Properties

Link copied to clipboard
open override val client: HttpClient

Functions

Link copied to clipboard
abstract fun client(appName: String?): HttpClient

Retrieves a HttpClient with default configurations for the KtorTestApplication with the given name.

Link copied to clipboard
open override fun createClient(block: HttpClientConfig<out HttpClientEngineConfig>.() -> Unit): HttpClient

abstract fun createClient(appName: String?, block: HttpClientConfig<out HttpClientEngineConfig>.() -> Unit): HttpClient

Retrieves a HttpClient with default configurations and the configurations provided in the given block for the KtorTestApplication with the given name.