willProcessRequest method Null safety
- Request req
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 operation 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
.
Implementation
FutureOr<RequestOrResponse> willProcessRequest(Request req) => req;