DSshelf2 class abstract

Inheritance

Constructors

DSshelf2()

Properties

handler → Handler
Composed handler with all registered middleware and routes.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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