Handler typedef

FutureOr<Response> Handler (
  1. Request req
)

The function that executes the main logic for an endpoint. A Handler takes a Request and returns a Response with a data payload or relevant errors.

Implementation

typedef FutureOr<Response> Handler(Request req);