RequestHelpers extension
Some convenience methods on the HttpRequest object to make the api more like ExpressJS
- on
Properties
- alfred → Alfred
-
Get Alfred instance which is associated with this request
no setter
-
body
→ Future<
Object?> -
Parse the body automatically and return the result
no setter
-
bodyAsJsonList
→ Future<
List> -
Parse the body, and convert it to a json list
no setter
-
bodyAsJsonMap
→ Future<
Map< String, dynamic> > -
Parse the body, and convert it to a json map
no setter
- contentType → ContentType?
-
Get the content type
no setter
- exception → dynamic
-
Get the intercepted exception
no setter
- match → HttpRouteMatch?
-
Get the matched route of the current request
no setter
-
params
→ Map<
String, dynamic> -
Get params
no setter
- route → String
-
Get the matched route URI of the current request
no setter