Concept Flow - Middleware concept and execution flow
Request Received
Middleware 1
Middleware 2
Middleware 3
Route Handler
Response Sent
The request passes through each middleware in order, each can modify the request or response, then finally the route handler sends the response.