HttpRouter

Base class providing route registration APIs to guest code, compiling routing keys that can be used to resolve handler references from a HandlerRegistry.

Functions

Link copied to clipboard
abstract fun handle(method: String?, path: String?, handler: PolyglotValue)

Guest-accessible method used to register a handler for the provided method and path.