Expand description
Trie-based HTTP router.
This crate provides a high-performance radix trie router optimized for the fastapi_rust framework.
§Features
- Radix trie for fast lookups
- Path parameter extraction (
/items/{id}) - Type-safe path converters
- Static route optimization
Structs§
- Allowed
Methods - Allowed methods for a matched path.
- Invalid
Route Error - Error returned when a route path is invalid.
- Param
Info - Path parameter information with optional OpenAPI metadata.
- Route
- A route definition used for routing and (optionally) metadata.
- Route
Conflict Error - Error returned when a new route conflicts with an existing one.
- Route
Match - A matched route with extracted parameters.
- Route
Registration - A route registration entry placed in a linker section.
- Router
- Radix trie router.
Enums§
- Conversion
Error - Error type for parameter conversion failures.
- Converter
- Path parameter type converter.
- Param
Value - A type-converted path parameter value.
- Route
AddError - Error returned when adding a route fails.
- Route
Lookup - Result of attempting to locate a route by path and method.
Functions§
- registered_
routes - Return all routes registered via the link-section table.