HttpRoute class

Constructors

HttpRoute(String route, FutureOr callback(HttpRequest req, HttpResponse res), Method method, {List<FutureOr Function(HttpRequest req, HttpResponse res)> middleware = const []})

Properties

callback FutureOr Function(HttpRequest req, HttpResponse res)
final
hashCode int
The hash code for this object.
no setterinherited
matcher RegExp
latefinal
method Method
final
middleware List<FutureOr Function(HttpRequest req, HttpResponse res)>
final
params Iterable<HttpRouteParam>
no setter
route String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
usesWildcardMatcher bool
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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