关于[ASP.NET Core 2.1 middlewares part 1: building a custom middleware]的摘要:
As part of an ASP.NET Core 2.1 application, middleware makes up the processing chain (pipeline) of HTTP requests. They interact on the response and the HTTP request. Each middleware can call the following middleware. They can perform operations before AND after their successor. It is important to understand that the HTTP response is built only when the request is passed in this middleware suite. This series of articles aims to describe how to build custom middlewares and how to unit test them. So in a typical ASP.NET Core Startup, we simply use the framework default middlewares