RoutingResolveTrace

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

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

Link copied to clipboard

Functions

Link copied to clipboard

Add candidate for resolving.

Link copied to clipboard
fun begin(route: Route, segmentIndex: Int)

Begins processing a route at segment with segmentIndex in segments.

Link copied to clipboard

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

Link copied to clipboard
fun finish(route: Route, segmentIndex: Int, result: RoutingResolveResult)

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

Link copied to clipboard
Link copied to clipboard
fun skip(route: Route, segmentIndex: Int, result: RoutingResolveResult)

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

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard