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: HttpMethod, path: String, handler: T)
asSequence
Link copied to clipboard
abstract fun asSequence(): Sequence<RouteMapEntry<T>>
abstract fun asSequence(method: HttpMethod): Sequence<RouteMapEntry<T>>
findHandler
Link copied to clipboard
abstract fun findHandler(method: HttpMethod, path: String): T?