class TestApplicationRequest : BaseApplicationRequest, CoroutineScope
Represents a test application request
TestApplicationRequest(call: TestApplicationCall, closeRequest: Boolean, method: HttpMethod = HttpMethod.Get, uri: String = "/", version: String = "HTTP/1.1")
Represents a test application request |
var bodyChannel: ByteReadChannel
Request body channel |
|
val cookies: RequestCookies |
|
val headers: Headers |
|
val local: RequestConnectionPoint |
|
var method: HttpMethod
HTTP method to be sent or executed |
|
var protocol: String
HTTP protocol to be used or was used |
|
val queryParameters: Parameters |
|
var uri: String
HTTP url to sent request to or was sent to |
|
var version: String
HTTP version to sent or executed |
fun addHeader(name: String, value: String): Unit
Add HTTP request header |
|
fun receiveChannel(): ByteReadChannel |
fun TestApplicationRequest.setBody(value: String): Unit
Set HTTP request body text content fun TestApplicationRequest.setBody(value: ByteArray): Unit
Set HTTP request body bytes fun TestApplicationRequest.setBody(boundary: String, parts: List<PartData>): Unit
Set multipart HTTP request body |