Expand description
Request routing abstractions.
This module exposes traits and builders for plugging application logic into the server. It now includes a fluent router builder focused on ergonomics.
Structs§
- Default
Router - Simple router that always returns a 501 placeholder.
- Router
- Router that dispatches requests to registered handlers by method and path.
- Router
Builder - Builder for constructing a
Routerinstance with fluent method helpers.
Traits§
- Handler
- Trait implemented by application handlers.
Functions§
- router
- Construct a fresh
RouterBuilderwithout needing to import the type.