Module routing

Source
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.
RoutingTable
A system that contains all available routes. Routes may be registered with it and can then be looked up from.

Enums§

PathPart
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.
RouteRegistrationError
Errors that can occur when registering new routes with the routing table

Traits§

RouteHandler
Represents code that will be executed for a given route.