abstract-router library

Classes

AbstractRouter
抽象的路由系统,其包含绑定路径处理器、中间件以及根据路由信息解析路径获得上下文
An abstract routing system that includes a bound path processor, middleware, and context for resolving paths based on routing information.
RouterContext
路由上下文
The router context for some path

Typedefs

RouteHandler(RouterContext context) → Future
路由处理器
The function as handler for router.
RouteMiddleware(RouterContext context) → Future
路由中间件
The function as middleware for router.