ktor-server-core / io.ktor.routing / RoutingResolveContext

RoutingResolveContext

class RoutingResolveContext

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

<init>

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

Represents a context in which routing resolution is being performed

Properties

call

val call: ApplicationCall

instance of ApplicationCall to use during resolution

hasTrailingSlash

val hasTrailingSlash: Boolean

Flag showing if path ends with slash

routing

val routing: Route

root node for resolution to start at

segments

val segments: List<String>

List of path segments parsed out of a call

Functions

resolve

fun resolve(): RoutingResolveResult

Executes resolution procedure in this context and returns RoutingResolveResult