Middleware
Code that runs between request and response — for authentication, logging, parsing, CORS.
Express, Koa, Next.js: a chain of middlewares every request passes through. The concept appears in: ASP.NET pipelines, Django middleware, Rails Rack. Powerful pattern for cross-cutting concerns.