httpRequestHandler function

void httpRequestHandler(
  1. HttpRequest req
)

this is a class which get matched routes and pass http request to route middleware and controllers and response from controllers is passed to httpResponseHandler

Implementation

void httpRequestHandler(HttpRequest req) {
  if (AfterResponse.enabled) {
    AfterResponse.wrap(req.response, () => _handle(req));
  } else {
    _handle(req);
  }
}