ClientProvider

interface ClientProvider

A client attached to TestApplication.

Functions

Link copied to clipboard
abstract fun createClient(block: <ERROR CLASS><out <ERROR CLASS>>.() -> Unit): <ERROR CLASS>

Creates a client with a custom configuration. For example, to send JSON data in a test POST/PUT request, you can install the ContentNegotiation plugin:

Properties

Link copied to clipboard
abstract val client: <ERROR CLASS>

Returns a client with the default configuration.

Inheritors

Link copied to clipboard
Link copied to clipboard