RoutingResolveContext

class RoutingResolveContext(routing: Route, call: ApplicationCall, tracers: List<(RoutingResolveTrace) -> Unit>)

Represents a context in which routing resolution is being performed

Parameters

routing

root node for resolution to start at

call

instance of ApplicationCall to use during resolution

Constructors

Link copied to clipboard
fun RoutingResolveContext(routing: Route, call: ApplicationCall, tracers: List<(RoutingResolveTrace) -> Unit>)

Functions

Link copied to clipboard
fun resolve(): RoutingResolveResult

Executes resolution procedure in this context and returns RoutingResolveResult

Properties

Link copied to clipboard
val call: ApplicationCall
Link copied to clipboard
val hasTrailingSlash: Boolean

Flag showing if path ends with slash

Link copied to clipboard
val routing: Route
Link copied to clipboard
val segments: List<String>

List of path segments parsed out of a call