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

RoutingResolveTrace

class RoutingResolveTrace

Represents the trace of routing resolution process for diagnostics.

Parameters

call - instance of ApplicationCall for which this trace was created.

segments - list of Strings for each path segment supplied for the routing resolution.

Constructors

<init>

RoutingResolveTrace(call: ApplicationCall, segments: List<String>)

Represents the trace of routing resolution process for diagnostics.

Properties

call

val call: ApplicationCall

instance of ApplicationCall for which this trace was created.

segments

val segments: List<String>

list of Strings for each path segment supplied for the routing resolution.

Functions

begin

fun begin(route: Route, segmentIndex: Int): Unit

Begins processing a route at segment with segmentIndex in segments.

buildText

fun buildText(): String

Builds detailed text description for this trace, including all entries.

finish

fun finish(route: Route, segmentIndex: Int, result: RoutingResolveResult): Unit

Finishes processing a route at segment with segmentIndex in segments with the given result.

skip

fun skip(route: Route, segmentIndex: Int, result: RoutingResolveResult): Unit

Begins and finishes processing a route at segment with segmentIndex in segments with the given result.

toString

fun toString(): String