Router class

Constructors

Router.new()

Properties

bindings List<RouteBinding>
getter/setter pair
container Container?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

connect(String path, {RequestCallback? handler, Controller? controller, String? method}) → void
delete(String path, {RequestCallback? handler, Controller? controller, String? method}) → void
get(String path, {RequestCallback? handler, Controller? controller, String? method}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
options(String path, {RequestCallback? handler, Controller? controller, String? method}) → void
patch(String path, {RequestCallback? handler, Controller? controller, String? method}) → void
post(String path, {RequestCallback? handler, Controller? controller, String? method}) → void
put(String path, {RequestCallback? handler, Controller? controller, String? method}) → void
serveHTTP() Future
setDIContainer(Container container) → void
toString() String
A string representation of this object.
inherited
trace(String path, {RequestCallback? handler, Controller? controller, String? method}) → void

Operators

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