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
Functions
Link copied to clipboard
Link copied to clipboard
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.