RequestHandler typedef

FutureOr RequestHandler (
  1. RequestContext req,
  2. ResponseContext res
)

A function that receives an incoming RequestContext and responds to it.

Implementation

typedef FutureOr RequestHandler(RequestContext req, ResponseContext res);