Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class TextStyle(val foregroundColour: ForegroundColour = Default, val backgroundColour: BackgroundColour = BackgroundColour.Default, val variation: Variation = Variation.Default)
Link copied to clipboard

Functions

Link copied to clipboard
fun RoutingHandler<*, *, *>.prettify(escape: EscapeMode = Ansi): String

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

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

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.

Link copied to clipboard
fun String.styled(style: TextStyle, escapeMode: EscapeMode = Ansi): String