TestApplicationRequest

class TestApplicationRequest(call: TestApplicationCall, closeRequest: Boolean, var method: HttpMethod = HttpMethod.Get, var uri: String = "/", var port: Int? = null, var version: String = "HTTP/1.1") : BaseApplicationRequest, CoroutineScope

A test application request

Constructors

Link copied to clipboard
constructor(call: TestApplicationCall, closeRequest: Boolean, method: HttpMethod = HttpMethod.Get, uri: String = "/", port: Int? = null, version: String = "HTTP/1.1")

Properties

Link copied to clipboard

Request body channel.

Link copied to clipboard
override val call: PipelineCall
Link copied to clipboard
open override val cookies: RequestCookies
Link copied to clipboard
Link copied to clipboard
override val headers: Headers
Link copied to clipboard
open override val local: RequestConnectionPoint
Link copied to clipboard

HTTP method to be sent or executed

Link copied to clipboard
Link copied to clipboard
var port: Int?

(Optional) HTTP port to send request to

Link copied to clipboard

HTTP protocol to be used or was used

Link copied to clipboard
open override val queryParameters: Parameters
Link copied to clipboard
open override val rawQueryParameters: Parameters
Link copied to clipboard
var uri: String

HTTP url to sent request to or was sent to

Link copied to clipboard

HTTP version to sent or executed

Functions

Link copied to clipboard
fun addHeader(name: String, value: String)

Adds an HTTP request header.

Link copied to clipboard
Link copied to clipboard
override fun setHeader(name: String, values: List<String>?)
Link copied to clipboard
override fun setReceiveChannel(channel: ByteReadChannel)