Expand description
Provides mechanisms to define routes for the Mmids HTTP apis, and what code should be executed for each route.
Structs§
- Route
- Defines the HTTP method, a specific path, and which handler should execute requests that match the route.
- Routing
Table - A system that contains all available routes. Routes may be registered with it and can then be looked up from.
Enums§
- Path
Part - Defines how a single fragment of the URL path should be read as. Each part is the whole value
between a
/
and either another/
or the end of the string. Query parameters are not considered. - Route
Registration Error - Errors that can occur when registering new routes with the routing table
Traits§
- Route
Handler - Represents code that will be executed for a given route.