RoutingMatch

data class RoutingMatch<R>(priority: Int, description: RouterDescription, handler: (Request) -> R) : Comparable<RoutingMatch<R>> , Function1<Request, R>

Constructors

Link copied to clipboard
constructor(priority: Int, description: RouterDescription, handler: (Request) -> R)

Functions

Link copied to clipboard
fun Events.and(next: Events): Events
Link copied to clipboard
fun (Request) -> Boolean.asRouter(name: String = ""): Router
Link copied to clipboard
Link copied to clipboard
open operator override fun compareTo(other: RoutingMatch<R>): Int
Link copied to clipboard
fun HttpHandler.debug(out: PrintStream = System.out, debugStream: Boolean = false): (request: Request) -> Response
Link copied to clipboard
open operator override fun invoke(p1: Request): R
Link copied to clipboard

Convert a synchronous HttpHandler API to mimic AsyncHttpClient