© Dirk Strauss 2021
D. StraussCreating ASP.NET Core Web Applicationshttps://doi.org/10.1007/978-1-4842-6828-5_7

7. Exploring Middleware

Dirk Strauss1  
(1)
Uitenhage, South Africa
 

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 with that ...

Get Creating ASP.NET Core Web Applications: Proven Approaches to Application Design and Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.