TestApplicationCall

class TestApplicationCall(application: Application, readResponse: Boolean, closeRequest: Boolean, coroutineContext: CoroutineContext) : BaseApplicationCall, CoroutineScope

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

Constructors

Link copied to clipboard
fun TestApplicationCall(application: Application, readResponse: Boolean = false, closeRequest: Boolean = true, coroutineContext: CoroutineContext)

Functions

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
override val application: Application
Link copied to clipboard
override val attributes: Attributes
Link copied to clipboard
open override val coroutineContext: CoroutineContext
Link copied to clipboard
open override val parameters: Parameters
Link copied to clipboard
open override val request: TestApplicationRequest
Link copied to clipboard
var requestHandled: Boolean = false

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

Link copied to clipboard
open override val response: TestApplicationResponse