Executed prior to handling a request, but after the request has been set.
This method is used to do pre-process setup and filtering. The request will be set, but its body will not be decoded nor will the appropriate responder method be selected yet. By default, returns the request. If this method returns a Response, this controller will stop processing the request and immediately return the Response to the HTTP client.
May not return any other Request than req
.
Source
Future<RequestOrResponse> willProcessRequest(Request req) async { return req; }