Chain of Responsibility
Intent: Pass a request along a chain of handlers until one handles it.
When to use it
- Middleware pipelines
- Approval workflows
Example
HTTP middleware: auth → rate limit → handler.
Intent: Pass a request along a chain of handlers until one handles it.
HTTP middleware: auth → rate limit → handler.