prettify

fun RoutingHandler<*, *, *>.prettify(escape: EscapeMode = Ansi): String(source)

Renders the routes as a path tree, every line the same colour.


fun RoutingHandler<*, *, *>.prettify(request: Request, escape: EscapeMode = Ansi): String(source)

Renders the routes as a path tree, colouring each leaf by how it matches the request: green = matched, yellow = path matched but method/predicate did not, red+strikethrough = unmatched.