RouterConfig class
A HTTP request router that matches incoming requests to registered handlers.
- Annotations
-
- @sealed
Constructors
- RouterConfig({Handler notFoundHandler = _defaultNotFound})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
String verb, String route, Function handler) → void -
all(
String route, Function handler) → void -
call(
Request request) → Future< Response> -
connect(
String route, Function handler) → void -
delete(
String route, Function handler) → void -
get(
String route, Function handler) → void -
head(
String route, Function handler) → void -
mount(
String prefix, Handler handler) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
options(
String route, Function handler) → void -
patch(
String route, Function handler) → void -
post(
String route, Function handler) → void -
put(
String route, Function handler) → void -
toString(
) → String -
A string representation of this object.
inherited
-
trace(
String route, Function handler) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- routeNotFound → Response
-
final