RouterPlus class
Extended request router based on shelf Router
Constructors
- RouterPlus({Router? existingRouter})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shelfRouter → Router
-
final
Methods
-
add(
String verb, String route, Function handler, [Middleware? localMiddleware]) → void -
Add
handler
forverb
requests toroute
. -
all(
String route, Function handler, {Middleware? use}) → void -
Handle all request to
route
usinghandler
. -
call(
Request request) → FutureOr< Response> - Process incoming request
-
connect(
String route, Function handler, {Middleware? use}) → void -
Handle
CONNECT
request toroute
usinghandler
. -
delete(
String route, Function handler, {Middleware? use}) → void -
Handle
DELETE
request toroute
usinghandler
. -
get(
String route, Function handler, {Middleware? use}) → void -
Handle
GET
request toroute
usinghandler
. -
head(
String route, Function handler, {Middleware? use}) → void -
Handle
HEAD
request toroute
usinghandler
. -
mount(
String prefix, Handler handler) → void - Mount a handler below a prefix.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
options(
String route, Function handler, {Middleware? use}) → void -
Handle
OPTIONS
request toroute
usinghandler
. -
patch(
String route, Function handler, {Middleware? use}) → void -
Handle
PATCH
request toroute
usinghandler
. -
post(
String route, Function handler, {Middleware? use}) → void -
Handle
POST
request toroute
usinghandler
. -
put(
String route, Function handler, {Middleware? use}) → void -
Handle
PUT
request toroute
usinghandler
. -
toString(
) → String -
A string representation of this object.
inherited
-
trace(
String route, Function handler, {Middleware? use}) → void -
Handle
TRACE
request toroute
usinghandler
. -
use(
Middleware middleware) → void -
Registers a
middleware
to use for all specified routes.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited