Skip to content

The dispatch flow

Request → router → match → middleware chain → handler → response.

graph LR
  R[Request] --> RT[Router]
  RT --> M[Match pattern]
  M --> MW[Middleware]
  MW --> H[Handler]
  H --> Resp[Response]
  style RT fill:#E8F5E9