Route

interface Route

Common Route representation

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Match(    val route: Route,     val routeParams: Map<String, String>,     val queryParams: Map<String, String>)

Represents a route match

Functions

Link copied to clipboard
abstract fun buildUri(vararg routeParams: String): String

Builds a uri with the given routeParams

abstract fun buildUri(routeParams: Map<String, String>, queryParams: Map<String, String>): String

Builds a uri with the given routeParams and queryParams

Link copied to clipboard
abstract fun match(uri: String): Route.Match?

Matches the given uri against the pattern of the route.

Link copied to clipboard
open fun String.replacePlaceholder(placeholder: String, value: String): String

Internal helper for building uris

Properties

Link copied to clipboard
abstract val pattern: String

The pattern of the route

Inheritors

Link copied to clipboard