Answer
Middleware are sequential components that inspect, transform, route, or short-circuit HTTP requests. Each middleware can:
- Read request
- Modify response
- Call next middleware
- Handle the response entirely
The pipeline is flexible, efficient, and replaces legacy HTTP modules/handlers.