HttpServerResponse

constructor(body: Any = "", headers: Headers = Headers(), contentType: ContentType? = null, cookies: List<Cookie> = emptyList(), status: HttpStatus = NOT_FOUND_404, onConnect: WsServerSession.() -> Unit = {}, onBinary: WsServerSession.(data: ByteArray) -> Unit = {}, onText: WsServerSession.(text: String) -> Unit = {}, onPing: WsServerSession.(data: ByteArray) -> Unit = {}, onPong: WsServerSession.(data: ByteArray) -> Unit = {}, onClose: WsServerSession.(status: WsCloseStatus, reason: String) -> Unit = { _, _ -> })