ktor-server-test-host / io.ktor.server.testing / TestApplicationCall

TestApplicationCall

class TestApplicationCall : BaseApplicationCall, CoroutineScope

Represents a test application call that is used in withTestApplication and handleRequest

Constructors

<init>

TestApplicationCall(application: Application, readResponse: Boolean = false, closeRequest: Boolean = true, coroutineContext: <ERROR CLASS>)

Represents a test application call that is used in withTestApplication and handleRequest

Properties

coroutineContext

val coroutineContext: <ERROR CLASS>

request

val request: TestApplicationRequest

requestHandled

var requestHandled: Boolean

Set to true when the request has been handled and a response has been produced

response

val response: TestApplicationResponse

Functions

toString

fun toString(): String