Router class

Constructors

Router({Pipeline notFoundPipeline, Handler notFoundHandler, Pipeline serverErrorPipeline, Handler serverErrorHandler})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

canHandle(Uri uri) bool
clearPipeline() → void
DELETE(String pattern, Handler endpoint) → Route
GET(String pattern, Handler endpoint) → Route
Group(String pattern) Router
NOT_FOUND(Handler endpoint) → Route
POST(String pattern, Handler endpoint) → Route
printRoutes() → void
PUT(String pattern, Handler endpoint) → Route
RECOVER({Recoverer recover}) → void
serve(Request req) Future<Response>
use(Middleware middleware) → void
useParallel({RequestMiddleware pre, ResponseMiddleware post, Handler error, bool useAlways: false}) → void
useSerial({RequestMiddleware pre, ResponseMiddleware post, Handler error, bool useAlways: false}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited