RequestHelpers extension
Some convenience methods on the HttpRequest object to make the api more like ExpressJS
- on
Properties
-
body
→ Future<
Object?> -
Available on HttpRequest, provided by the RequestHelpers extension
Parse the body automatically and return the resultno setter -
bodyAsJsonList
→ Future<
List> -
Available on HttpRequest, provided by the RequestHelpers extension
Parse the body, and convert it to a json listno setter -
bodyAsJsonMap
→ Future<
Map< String, dynamic> > -
Available on HttpRequest, provided by the RequestHelpers extension
Parse the body, and convert it to a json mapno setter - contentType → ContentType?
-
Available on HttpRequest, provided by the RequestHelpers extension
Get the content typeno setter - exception → dynamic
-
Available on HttpRequest, provided by the RequestHelpers extension
Get the intercepted exceptionno setter - match → HttpRouteMatch?
-
Available on HttpRequest, provided by the RequestHelpers extension
Get the matched route of the current requestno setter -
params
→ Map<
String, dynamic> -
Available on HttpRequest, provided by the RequestHelpers extension
Get paramsno setter - route → String
-
Available on HttpRequest, provided by the RequestHelpers extension
Get the matched route URI of the current requestno setter - server_universe → ServerUniverseNative
-
Available on HttpRequest, provided by the RequestHelpers extension
Get ServerUniverseNative instance which is associated with this requestno setter