RouteMapRegistry

interface RouteMapRegistry<T>

Stores a mapping from an HTTP-method+path to a handler

Functions

addRoute
Link copied to clipboard
abstract fun addRoute(method: <ERROR CLASS>, path: String, handler: T)
asSequence
Link copied to clipboard
abstract fun asSequence(): <ERROR CLASS><RouteMapEntry<T>>
abstract fun asSequence(method: <ERROR CLASS>): <ERROR CLASS><RouteMapEntry<T>>
findHandler
Link copied to clipboard
abstract fun findHandler(method: <ERROR CLASS>, path: String): T?