Junior
ASP.NET Core
ASP.NET Core
What is middleware in ASP.NET Core?
Middleware is a component in the HTTP request pipeline that can:
- Handle requests,
- Pass requests to the next middleware,
- Or short-circuit the pipeline.
Middleware can:
- Perform actions before and/or after the next middleware executes.
- Be used for logging, authentication, error handling, etc.
Middleware executes in the order it's added in Program.cs.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png