MokksyHandler

Minimal contract for embedding Mokksy stub handling into a Ktor application.

Application.mokksy and Route.mokksy accept any MokksyHandler, so stub routing can be mounted into an existing Ktor application without constructing a full MokksyServer (which also allocates an embedded server).

MokksyServer is the standard implementation. Implement this interface directly only when you need a custom stub-registry configuration without an embedded server.

Inheritors

Properties

Link copied to clipboard

Server-level configuration, used to set up content negotiation when installed.

Functions

Link copied to clipboard
abstract suspend fun handle(context: RoutingContext)

Dispatches an incoming request to the appropriate stub and writes the response.