api

http4k / org.http4k.websocket / PolyHandler

PolyHandler

class PolyHandler

A PolyHandler represents the combined routing logic of an Http handler and a Websocket handler. ws:// and http:// protocol calls are passed relevantly.

Constructors

Name Summary
<init> A PolyHandler represents the combined routing logic of an Http handler and a Websocket handler. ws:// and http:// protocol calls are passed relevantly.PolyHandler(http: HttpHandler, ws: WsHandler)

Properties

Name Summary
http val http: HttpHandler

Extension Functions

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