Skip to content

Compatibility with Ktoropensavvy.prepared.compat.ktorpreparedClient

preparedClient


fun Prepared<TestApplication>.preparedClient(configuration: HttpClientConfig<out HttpClientEngineConfig>.(test: TestDsl) -> Unit): PreparedProvider<HttpClient>

Instantiates a Ktor test client from a test server.

This overload allows configuring the created client. It is sugar for TestApplication.createClient.


fun Prepared<TestApplication>.preparedClient(): PreparedProvider<HttpClient>

Instantiates a Ktor test client from a test server.

This function is sugar for TestApplication.client.