Request class

Constructors

Request.new({required String method, required HttpRequest original, required HttpResponse response, Map<String, String?> headers = const {}})
Request.fromBase(HttpRequest httpRequest)

Properties

container ↔ Container
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String?>
getter/setter pair
method String
getter/setter pair
original HttpRequest
getter/setter pair
response HttpResponse
getter/setter pair
route ↔ RouteEntry
getter/setter pair
router Router
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri Uri
no setter

Methods

findRoute() → RouteEntry?
get(String name) → dynamic
getRouteParam(dynamic name, {Type type = String}) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setRoute(RouteEntry route) → void
toString() String
A string representation of this object.
inherited

Operators

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