#ICYMI: In this article, we will try to understand the concept of middleware in ASP.NET core. We will see how middleware plays an important part in the request-response pipeline and how we can write and plug-in our custom middleware.
Background
Before we can get into the what middleware is and the value it brings, we need to understand how the request-response works in a classic ASP.NET model. In earlier days, the request and response objects in ASP.NET were very big and had a very tight coupling with IIS. This was a problem because some of the values in these objects are filled by the IIS request-response pipeline, and unit testing such bloated objects was a very big challenge. https://goo.gl/PjUbPQ


