RequestContext- Contains vital information about the client requesting a resource, such as request method, request body, IP address, etc. The request object can also be used to pass information from one handler to the next.
bool: Request handling will end prematurely if you return
false, but it will continue if you return
RequestHandler: the returned handler will be executed.
toListwill be called, and then returned.
Future: it will be awaited, and then returned.
json.encode. However, you can change a response's serialization method by setting
res.serializer = foo;. If you want to assign the same serializer to all responses, globally set
serializeron your Angel instance. If you are only returning JSON-compatible Dart objects, like Maps or Lists, you might consider injecting
JSON.encodeas a serializer, to improve runtime performance (this is the default in
Mapbased on the URI query parameters by calling