HttpServerRequest

data class HttpServerRequest(    val method: HttpMethod = GET,     val protocol: HttpProtocol = HTTP,     val host: String = "localhost",     val port: Int = 80,     val path: String = "",     val queryParameters: HttpFields<QueryParameter> = HttpFields(),     val headers: HttpFields<Header> = HttpFields(),     val body: Any = "",     val parts: List<HttpPart> = emptyList(),     val formParameters: HttpFields<FormParameter> = HttpFields(),     val cookies: List<HttpCookie> = emptyList(),     val contentType: ContentType? = null,     val certificateChain: List<X509Certificate> = emptyList(),     val accept: List<ContentType> = emptyList(),     val contentLength: Long = -1L) : HttpServerRequestPort

Constructors

Link copied to clipboard
fun HttpServerRequest(    method: HttpMethod = GET,     protocol: HttpProtocol = HTTP,     host: String = "localhost",     port: Int = 80,     path: String = "",     queryParameters: HttpFields<QueryParameter> = HttpFields(),     headers: HttpFields<Header> = HttpFields(),     body: Any = "",     parts: List<HttpPart> = emptyList(),     formParameters: HttpFields<FormParameter> = HttpFields(),     cookies: List<HttpCookie> = emptyList(),     contentType: ContentType? = null,     certificateChain: List<X509Certificate> = emptyList(),     accept: List<ContentType> = emptyList(),     contentLength: Long = -1L)

Functions

Link copied to clipboard
open fun bodyString(): String
Link copied to clipboard
open fun certificate(): X509Certificate?
Link copied to clipboard
open fun cookiesMap(): Map<String, HttpCookie>
Link copied to clipboard
open fun origin(): String?
Link copied to clipboard
open fun partsMap(): Map<String, HttpPartPort>
Link copied to clipboard
open fun referer(): String?
Link copied to clipboard
open fun url(): URL
Link copied to clipboard
open fun userAgent(): String?

Properties

Link copied to clipboard
open override val accept: List<ContentType>
Link copied to clipboard
open override val body: Any
Link copied to clipboard
open override val certificateChain: List<X509Certificate>
Link copied to clipboard
open override val contentLength: Long
Link copied to clipboard
open override val contentType: ContentType? = null
Link copied to clipboard
open override val cookies: List<HttpCookie>
Link copied to clipboard
open override val formParameters: HttpFields<FormParameter>
Link copied to clipboard
open override val headers: HttpFields<Header>
Link copied to clipboard
open override val host: String
Link copied to clipboard
open override val method: HttpMethod
Link copied to clipboard
open override val parts: List<HttpPart>
Link copied to clipboard
open override val path: String
Link copied to clipboard
open override val port: Int = 80
Link copied to clipboard
open override val protocol: HttpProtocol
Link copied to clipboard
open override val queryParameters: HttpFields<QueryParameter>