© 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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.