shelf_router 1.0.0 copy "shelf_router: ^1.0.0" to clipboard
shelf_router: ^1.0.0 copied to clipboard

outdated

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 in shelf 1.0.0, a router will return a default 404 response instead. This behavior can be overridden with the notFoundHandler constructor parameter.
  • Breaking: Remove deprecated Router.handler getter. The router itself is a handler.

v0.7.4 #

  • Update Router.mount parameter to accept a Handler.
  • Make Router to be considered a Handler.
  • Deprecate the Router.handler getter.

v0.7.3 #

  • Added @sealed annotation to Router and Route.

v0.7.2 #

  • Always register a HEAD handler whenever a GET handler is registered. Defaulting to calling the GET handler and throwing away the body.

v0.7.1 #

  • Use Function instead of dynamic in RouterEntry to improve typing.

v0.7.0+1 #

  • Fixed description to fit size recommendations.

v0.7.0 #

  • Initial release
279
likes
0
pub points
98%
popularity

Publisher

verified publishertools.dart.dev

A convinent request router for the shelf web-framework, with support for URL-parameters, nested routers and routers generated from source annotations.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http_methods, meta, shelf

More

Packages that depend on shelf_router