What is middleware in ASP.NET Core?
Middleware is software assembled into the ASP.NET Core HTTP request pipeline. Each middleware component can inspect or modify the incoming request, perform work before or after the next component, and inspect or modify the outgoing response.