class TestApplicationResponse : BaseApplicationResponse, CoroutineScope
Represents test call response received from server
TestApplicationResponse(call: TestApplicationCall, readResponse: Boolean = false)
Represents test call response received from server |
var byteContent: ByteArray?
Response body byte content. Could be blocking. Remains |
|
val content: String?
Response body text content. Could be blocking. Remains |
|
val headers: ResponseHeaders |
fun awaitWebSocket(durationMillis: Long): Unit
Wait for websocket session completion fun |
|
fun contentChannel(): ByteReadChannel?
Response body content channel |
|
suspend fun
Await for response job completion |
|
suspend fun respondOutgoingContent(content: OutgoingContent): Unit |
|
suspend fun respondUpgrade(upgrade: ProtocolUpgrade): Unit |
|
suspend fun responseChannel(): ByteWriteChannel |
|
fun setStatus(statusCode: HttpStatusCode): Unit |
|
fun websocketChannel(): ByteReadChannel?
Websocket session's channel |
fun TestApplicationResponse.awaitWebSocket(duration: Duration): Unit
Wait for websocket session completion |
|
fun TestApplicationResponse.contentType(): ContentType
Return parsed content type from the test response |