WsResponse

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val consumer: WsConsumer
Link copied to clipboard
abstract val subprotocol: String?

Functions

Link copied to clipboard
@JvmName(name = "sseHandlerAsServer")
fun SseHandler.asServer(config: PolyServerConfig): Http4kServer
@JvmName(name = "wsHandlerAsServer")
fun WsHandler.asServer(config: PolyServerConfig): Http4kServer
@JvmName(name = "sseConsumerAsServer")
fun SseConsumer.asServer(config: PolyServerConfig): Http4kServer
@JvmName(name = "wsConsumerAsServer")
fun WsConsumer.asServer(config: PolyServerConfig): Http4kServer
Link copied to clipboard
fun SseHandler.debug(out: PrintStream = System.out, debugStream: Boolean = false): (Request) -> SseResponse
fun WsHandler.debug(out: PrintStream = System.out, debugStream: Boolean = false): (Request) -> WsResponse
Link copied to clipboard
abstract operator fun invoke(p1: Websocket)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun withConsumer(consumer: WsConsumer): WsResponse
Link copied to clipboard
abstract fun withSubprotocol(subprotocol: String?): WsResponse