Overridden by subclasses to modify or respond to an incoming request.
Subclasses override this method to provide their specific handling of a request.
If this method returns a Response, it will be sent as the response for req
and req
will not be passed to any other controllers.
If this method returns req
, req
will be passed to nextController.
If this method returns null, req
is not passed to any other controller and is not responded to. You must respond to req
through Request.innerRequest.
Source
FutureOr<RequestOrResponse> processRequest(Request req) { if (_listener != null) { return _listener(req); } return req; }