Middleware is a function that receives the request and response objects. Most tasks that the middleware functions perform are:
* Execute any type of code
* Update or modify the request and the response objects
* Finish the request-response cycle
* Invoke the next middleware in the stack