Companion

Functions

Link copied to clipboard
fun fromUrl(url: URL): Route

Convert a URL to a Route.

Link copied to clipboard
fun isRoute(path: String): Boolean

Returns true if a route, i.e. a path without an origin

Link copied to clipboard

Remove any unnecessary slashes from a URL.

Link copied to clipboard
fun partition(pathQueryAndFragment: String): Pair<String, String>

Split a route into a pairing of its path part and query params / fragments part

Link copied to clipboard
fun tryCreate(path: String): Route?