RouterMatch

The result of a matching operation. May or may not contain a matched HttpHandler.

Inheritors

Types

Link copied to clipboard
data class MatchedWithoutHandler(val description: RouterDescription, val subMatches: List<RouterMatch> = listOf()) : RouterMatch
Link copied to clipboard
data class MatchingHandler(httpHandler: HttpHandler, val description: RouterDescription, val subMatches: List<RouterMatch> = listOf()) : RouterMatch, Function1<request: Request, Response>
Link copied to clipboard
data class MethodNotMatched(val description: RouterDescription, val subMatches: List<RouterMatch> = listOf()) : RouterMatch
Link copied to clipboard
data class Unmatched(val description: RouterDescription, val subMatches: List<RouterMatch> = listOf()) : RouterMatch

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun aggregatedBy(description: RouterDescription, fromMatches: List<RouterMatch>): RouterMatch
Link copied to clipboard
open operator override fun compareTo(other: RouterMatch): Int
Link copied to clipboard
fun RouterMatch.prettify(depth: Int = 0, escape: EscapeMode = Ansi): String