Router

interface Router

Matches requests for routing purposes.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
infix fun Router.and(that: Router): Router
Link copied to clipboard
Link copied to clipboard
abstract fun match(request: Request): RouterMatch

Attempt to supply an HttpHandler which can service the passed request.

Link copied to clipboard
open fun withBasePath(new: String): Router

Returns a Router which prepends the passed base path to the logic determining the match().

Link copied to clipboard
open fun withFilter(new: Filter): Router

Returns a Router which applies the passed Filter to all received requests before servicing them.