shelf_router 1.0.0 shelf_router: ^1.0.0 copied to clipboard
A convinent request router for the shelf web-framework, with support for URL-parameters, nested routers and routers generated from source annotations.
v1.0.0 #
- Migrate package to null-safety
- Since handlers are not allowed to return
null
inshelf
1.0.0, a router will return a default 404 response instead. This behavior can be overridden with thenotFoundHandler
constructor parameter. - Breaking: Remove deprecated
Router.handler
getter. The router itself is a handler.
v0.7.4 #
- Update
Router.mount
parameter to accept aHandler
. - Make
Router
to be considered aHandler
. - Deprecate the
Router.handler
getter.
v0.7.3 #
- Added
@sealed
annotation toRouter
andRoute
.
v0.7.2 #
- Always register a
HEAD
handler whenever aGET
handler is registered. Defaulting to calling theGET
handler and throwing away the body.
v0.7.1 #
- Use
Function
instead ofdynamic
inRouterEntry
to improve typing.
v0.7.0+1 #
- Fixed description to fit size recommendations.
v0.7.0 #
- Initial release