-
-
Notifications
You must be signed in to change notification settings - Fork 22.8k
Closed
Labels
Description
I see that expressjs app has a stack of Layer object Arrays. Which is the function that is used to pass the
I want to know:
- When a request is sent from the
httpclient whichfunction is invoked firstand how is the stack array functions withmiddlewaresinvoked and results passed stepwise? - Here is an example
app.get(path, [middleware(req, res, next), m2(req, res, next), m3(req, res, next), m4(req, res, next)], handler(req, res))=> which function invokes functions stepwise =>[middleware(req, res, next), m2(req, res, next), m3(req, res, next), m4(req, res, next), handler(req, res)] - Where is the
requestandresponseobjects created that is passed asarguments? - Where is the
responseobject callback function forsend=>onfinish/onendfunctions which I can use to get thesend/sendfile'sresponse object into avariablefor aninterceptor?
I am looking for the entry of the request and exit if the response (with the response result).
Reactions are currently unavailable