Exchange

inner class Exchange(val http: <Error class: unknown class>, val path: String = http.requestURI.path, val inputStream: <Error class: unknown class>? = null)

Constructors

Link copied to clipboard
constructor(http: <Error class: unknown class>, path: String = http.requestURI.path, inputStream: <Error class: unknown class>? = null)

Properties

Link copied to clipboard
val http: <Error class: unknown class>
Link copied to clipboard
val inputStream: <Error class: unknown class>? = null
Link copied to clipboard

Functions

Link copied to clipboard
fun handle(handler: (WebServer.Exchange) -> Unit?)
Link copied to clipboard
fun invalidRequest(msg: String? = null, status: Int = 200)
Link copied to clipboard
fun reply(input: <Error class: unknown class>, status: Int = 200, size: Long?, type: String = "application/x-zip")
fun reply(response: ByteArray, status: Int = 200, size: Int = response.size, type: String = "application/javascript")
Link copied to clipboard
inline fun <T> replyJson(obj: T, status: Int = 200)