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): <Error class: unknown class>

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

Link copied to clipboard
fun sse(request: Request): <Error class: unknown class>

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

Link copied to clipboard
fun ws(request: Request): <Error class: unknown class>

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