Controller Router — Aquilia Documentation
Comprehensive guide and documentation for Controller Router in the Aquilia framework. View API reference, examples, and implementation patterns.
ControllerRouter aquilia.controller.router — Two-tier URL matching engine The ControllerRouter matches incoming requests to compiled routes. It employs a two-tier matching strategy for maximum request throughput. Two-Tier Architecture Tier 1: Static Routes Uses a direct dictionary key lookup offering O(1) matching performance. Routes without parameters (e.g. GET /health) bypass regular expressions entirely. Tier 2: Dynamic Routes Uses compiled regex matching for routes with path chevrons (e.g. GET /users/«id:int»). Specificity sorting guarantees the correct route takes precedence. Class Definition ControllerRouteMatch Reverse URL Generation Generate paths dynamically using route names: ControllerCompiler OpenAPI Generation )
Go to Homepage