api

http4k / org.http4k.server / PolyHandler

PolyHandler

class PolyHandler

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

Constructors

Name Summary
<init> A PolyHandler represents the combined routing logic of an multiple protocol handlersPolyHandler(http: HttpHandler? = null, ws: WsHandler? = null, sse: SseHandler? = null)

Properties

Name Summary
http val http: HttpHandler?
sse val sse: SseHandler?
ws val ws: WsHandler?

Extension Functions

Name Summary
asServer fun PolyHandler.asServer(config: PolyServerConfig): Http4kServer
testWsClient fun PolyHandler.testWsClient(request: Request): TestWsClient?