onRequest method

void onRequest(
  1. RequestContext context,
  2. RequestHandler handler
)

Called before the request is sent. Mutate handler.context or call handler.reject to abort.

Implementation

void onRequest(RequestContext context, RequestHandler handler) =>
    handler.next(context);