# The Request Pipeline

The Request Pipeline: Middleware: The Airport Checkpoints, How Frameworks Are Built from Patterns.

Updated: November 17, 2026

1. [Middleware: The Airport Checkpoints](https://www.ask-codey.com/lessons/dp-middleware) (Journeyman): When every endpoint starts by copying the same checks (log the request, make sure someone's signed in), one endpoint forgets one, and every new check is an edit to all of them; middleware gives each check its own small step in a line every request passes through, so each step handles the request or passes it on, which is Pass 3's Chain of Responsibility at work in every web framework.
2. [How Frameworks Are Built from Patterns](https://www.ask-codey.com/lessons/dp-frameworks-from-patterns) (Journeyman): A framework you've never seen looks like hundreds of files and a lot of magic; follow one request through it and every step is a pattern this course has taught (a facade to start it, observers when it starts, a pipeline of middleware, a dictionary of routes, a container, a controller, a repository), and the framework calling your code, not the other way round, is what makes it a framework.

Source: https://www.ask-codey.com/courses/design-patterns/topics/dp-the-request-pipeline
