PolyHandlerTestClient

This class is a test client for a PolyHandler which allows the invocation of the underlying handlers.

Constructors

Link copied to clipboard
constructor(poly: PolyHandler)

Functions

Link copied to clipboard
fun http(request: Request): Response

Invoke the HTTP handler of the PolyHandler with the given Request.

Link copied to clipboard
fun sse(request: Request): TestSseClient

Invoke the Server-Sent Events handler of the PolyHandler with the given Request.

Link copied to clipboard
fun ws(request: Request): TestWsClient

Invoke the WebSocket handler of the PolyHandler with the given Request.