In this chapter, we will be taking a closer look at middleware and the role it plays in ASP.NET Core. Understanding the role of middleware will help you structure your ASP.NET Core applications to make efficient use of middleware and the requests they handle.
What Is Middleware
Letâs first answer the most glaring question. What exactly is middleware? The simple answer is the following: Middleware can be thought of as a pipeline of code that handles requests and responses. Middleware chooses to pass requests to the next bit of code in the pipeline or doing something ...