Expand description
Declarative segment-based HTTP router supporting static segments, named parameters
(:id, :branch), tail wildcards (*path), and accurate 405 Method Not Allowed.
Structs§
- Route
Def - Declarative route entry stored inside
Router. - Router
- Deterministic ordered segment router (zero external dependencies).
Enums§
- Method
- Supported HTTP methods for Web UI and API routes.
- Route
Match - Result of matching
(method, path)against aRouter.
Functions§
- format_
allow_ header - Format an RFC 9110 §10.2.1
Allowheader value from router methods, automatically advertisingHEADwhenGETis allowed, plusOPTIONS.