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 for verb requests to route.
all(String route, Function handler, {Middleware? use}) → void
Handle all request to route using handler.
call(Request request) FutureOr<Response>
Process incoming request
connect(String route, Function handler, {Middleware? use}) → void
Handle CONNECT request to route using handler.
delete(String route, Function handler, {Middleware? use}) → void
Handle DELETE request to route using handler.
get(String route, Function handler, {Middleware? use}) → void
Handle GET request to route using handler.
Handle HEAD request to route using handler.
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 to route using handler.
patch(String route, Function handler, {Middleware? use}) → void
Handle PATCH request to route using handler.
post(String route, Function handler, {Middleware? use}) → void
Handle POST request to route using handler.
put(String route, Function handler, {Middleware? use}) → void
Handle PUT request to route using handler.
toString() String
A string representation of this object.
inherited
trace(String route, Function handler, {Middleware? use}) → void
Handle TRACE request to route using handler.
use(Middleware middleware) → void
Registers a middleware to use for all specified routes.

Operators

operator ==(Object other) bool
The equality operator.
inherited