PolyHandler

data class PolyHandler @JvmOverloads constructor(val http: HttpHandler? = null, val ws: WsHandler? = null, val sse: SseHandler? = null)(source)

A PolyHandler represents the combined routing logic of an multiple protocol handlers

Constructors

Link copied to clipboard
constructor(http: HttpHandler? = null, ws: WsHandler? = null, sse: SseHandler? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun PolyHandler.debug(out: PrintStream = System.out, debugStream: Boolean = false): PolyHandler
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Converts a PolyHandler into an HttpHandler, dispatching SSE requests to the SSE handler (forwarded as a true byte stream via piped streams so persistent streams do not block) and all other requests to the HTTP handler.