Skip to content

Glossary: Software Design Patterns in JavaScript

Middleware

Handlers every web request passes through, such as logging or login checks, each able to pass the request on with next() or stop it. It is chain of responsibility in web frameworks.

Where the book teaches it

Related terms

Chain of responsibilityExpress (and Fastify, Koa, Next.js)Handler