TestApplicationResponse

class TestApplicationResponse(call: TestApplicationCall, readResponse: Boolean = false) : BaseApplicationResponse, CoroutineScope

A test call response received from a server.

Constructors

Link copied to clipboard
fun TestApplicationResponse(call: TestApplicationCall, readResponse: Boolean = false)

Functions

Link copied to clipboard
fun awaitWebSocket(durationMillis: Long)

Waits for a websocket session completion.

Link copied to clipboard

Gets a response body content channel.

Link copied to clipboard
open override fun push(builder: ResponsePushBuilder)
Link copied to clipboard
open override fun status(): HttpStatusCode?
open override fun status(value: HttpStatusCode)
Link copied to clipboard

A websocket session's channel.

Properties

Link copied to clipboard
Link copied to clipboard
override val call: ApplicationCall
Link copied to clipboard

Gets a response body text content. Could be blocking. Remains null until response appears.

Link copied to clipboard
open override val cookies: ResponseCookies
Link copied to clipboard
Link copied to clipboard
open override val headers: ResponseHeaders
Link copied to clipboard
open override val isCommitted: Boolean
Link copied to clipboard
override var isSent: Boolean
Link copied to clipboard

Extensions

Link copied to clipboard

Wait for websocket session completion

Link copied to clipboard

Returns a parsed content type from a test response.