DSshelf2 class abstract
- Inheritance
-
- Object
- DSShelfCore
- DSshelf2
Constructors
- DSshelf2()
Properties
Methods
-
addFileBasedRoutes(
String routesDirectory, {String baseRoute = '/', bool recursive = true, required DSFileRouteHandlerFactory handlerFactory}) → void -
Registers routes discovered from files in
routesDirectory.inherited -
addGetRoute(
String path, Handler handler) → void -
Utility to register a GET route easily.
inherited
-
addMiddleware(
Middleware middleware) → void -
Adds a middleware to the pipeline.
inherited
-
addPostRoute(
String path, Handler handler) → void -
Utility to register a POST route easily.
inherited
-
addStaticRoute(
String fileSystemPath, {String routePath = '/'}) → void -
Registers a static file handler.
inherited
-
addWebSocketRoute(
String path, Handler handler) → void -
Registers a WebSocket route.
inherited
-
mount(
String path, Handler handler) → void -
Mounts a handler at a specific path.
inherited
-
mountRouter(
String path, Router router) → void -
Mounts a child Router at a specific path prefix.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printRoutes(
) → void -
Prints all registered routes to the console.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited