Skip to main content

Module routing_debug

Module routing_debug 

Source
Expand description

Routing debug output component.

Provides detailed visual display of the routing decision process, showing which routes were considered, why matches succeeded or failed, parameter extraction results, and middleware that will be applied.

§Feature Gating

This module is designed for debug output. In production, routing debug should only be enabled when explicitly requested.

if config.debug_routing {
    let debug = RoutingDebug::new(OutputMode::Rich);
    println!("{}", debug.format(&routing_result));
}

Structs§

CandidateRoute
Information about a candidate route that was considered.
ExtractedParams
Extracted path parameters.
MiddlewareInfo
Information about middleware that will be applied.
RoutingDebug
Routing debug output formatter.
RoutingDebugInfo
Complete routing debug information.

Enums§

MatchResult
Result of a route matching attempt.