Skip to content

Life cycle

Here is an overview of the journey of the request to the response.

  1. A request is made to the server
  2. An initial empty response is passed through global middlewares (before route matching)
  3. One of your route matched the request
  4. The response passes through route middlewares (before route rendering)
  5. The response passes to your route callback (route rendering)
  6. The response passes through route middlewares (after route rendering)
  7. The response passes through global middlewares (after route matching)
  8. The response is returned