HttpResponsePort

Functions

Link copied to clipboard
open fun bodyString(): String
Link copied to clipboard
open fun cookiesMap(): Map<String, Cookie>
Link copied to clipboard
open operator fun plus(cookie: Cookie): HttpResponsePort
open operator fun plus(header: Header): HttpResponsePort
open operator fun plus(headers: Headers): HttpResponsePort
open operator fun plus(cookies: List<Cookie>): HttpResponsePort
Link copied to clipboard
abstract fun with(status: HttpStatus = this.status, body: Any = this.body, headers: Headers = this.headers, contentType: ContentType? = this.contentType, cookies: List<Cookie> = this.cookies, onConnect: WsSession.() -> Unit = this.onConnect, onBinary: WsSession.(data: ByteArray) -> Unit = this.onBinary, onText: WsSession.(text: String) -> Unit = this.onText, onPing: WsSession.(data: ByteArray) -> Unit = this.onPing, onPong: WsSession.(data: ByteArray) -> Unit = this.onPong, onClose: WsSession.(status: Int, reason: String) -> Unit = this.onClose): HttpResponsePort

Properties

Link copied to clipboard
abstract val body: Any
Link copied to clipboard
abstract val contentLength: Long
Link copied to clipboard
abstract val contentType: ContentType?
Link copied to clipboard
abstract val cookies: List<Cookie>
Link copied to clipboard
abstract val headers: Headers
Link copied to clipboard
abstract val onBinary: WsSession.(data: ByteArray) -> Unit
Link copied to clipboard
abstract val onClose: WsSession.(status: Int, reason: String) -> Unit
Link copied to clipboard
abstract val onConnect: WsSession.() -> Unit
Link copied to clipboard
abstract val onPing: WsSession.(data: ByteArray) -> Unit
Link copied to clipboard
abstract val onPong: WsSession.(data: ByteArray) -> Unit
Link copied to clipboard
abstract val onText: WsSession.(text: String) -> Unit
Link copied to clipboard
abstract val status: HttpStatus