RouteMapRegistry

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

Functions

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