TestClientBuilder

class TestClientBuilder<T : HttpClientEngineConfig>

Constructors

<init>

TestClientBuilder(
    config: HttpClientConfig<T>.() -> Unit = {},
    test: suspend TestInfo.(client: HttpClient) -> Unit = {},
    after: suspend (client: HttpClient) -> Unit = {},
    repeatCount: Int = 1,
    dumpAfterDelay: Long = -1,
    concurrency: Int = 1)

Properties

after

var after: suspend (client: HttpClient) -> Unit

concurrency

var concurrency: Int

config

var config: HttpClientConfig<T>.() -> Unit

dumpAfterDelay

var dumpAfterDelay: Long

repeatCount

var repeatCount: Int

test

var test: suspend TestInfo.(client: HttpClient) -> Unit

Extension Functions

after

fun TestClientBuilder<*>.after(
    block: suspend (client: HttpClient) -> Unit
): Unit

config

fun <T : HttpClientEngineConfig> TestClientBuilder<T>.config(
    block: HttpClientConfig<T>.() -> Unit
): Unit

test

fun TestClientBuilder<*>.test(
    block: suspend TestInfo.(client: HttpClient) -> Unit
): Unit