Photo by Fabian Grohs on Unsplash

What is middleware?

Middleware are small C# components that are assembled into an application pipeline to handle requests and responses.

Each component can choose whether to pass the request on to the next component in the pipeline, and can perform certain actions before and after the next component in the pipeline. Request delegates are used to build this request pipeline, which are then used to handle each incoming HTTP request to your application.