Middleware
A function that runs before every route handler: security headers, language, cache control. Order matters, and a middleware that forgets to call `next()` stops the request silently.
- See also: Route
- Used in: Full-Stack Web App
A function that runs before every route handler: security headers, language, cache control. Order matters, and a middleware that forgets to call `next()` stops the request silently.