[−][src]Module grout::router
Contains the core structs of the router.
Use the RouterBuilder to create a Router: pass the router to hyper as the service.
Structs
RouteHandler | Responsible for handling the actual HTTP requests from hyper. |
Router | Intended to be used as the main service with hyper. |
RouterBuilder | A struct to simplify the construction of the router service. Enables registration of routes and handlers before instantiating the router. |
Type Definitions
InternalErrorHandler | A function that can convert an error into a response. |
NotFoundHandler | A function that handles unroutable requests and creates a response. |