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 result
no setter
bodyAsJsonList → Future<List>

Available on HttpRequest, provided by the RequestHelpers extension

Parse the body, and convert it to a json list
no setter
bodyAsJsonMap → Future<Map<String, dynamic>>

Available on HttpRequest, provided by the RequestHelpers extension

Parse the body, and convert it to a json map
no setter
contentType → ContentType?

Available on HttpRequest, provided by the RequestHelpers extension

Get the content type
no setter
exception → dynamic

Available on HttpRequest, provided by the RequestHelpers extension

Get the intercepted exception
no setter
match → HttpRouteMatch?

Available on HttpRequest, provided by the RequestHelpers extension

Get the matched route of the current request
no setter
params → Map<String, dynamic>

Available on HttpRequest, provided by the RequestHelpers extension

Get params
no setter
route → String

Available on HttpRequest, provided by the RequestHelpers extension

Get the matched route URI of the current request
no setter
server_universe → ServerUniverseNative

Available on HttpRequest, provided by the RequestHelpers extension

Get ServerUniverseNative instance which is associated with this request
no setter