Intercepting HTTP requests and responses by building our own middleware
In this section, we will create our own middleware for our existing application. In this middleware, we will log all requests and responses. Let's go through the following steps:
Open Visual Studio.
Open an existing project of the Product APIs by clicking File | Open | Project/Solution (or pressing Ctrl + Shift + O), as shown in the following screenshot:
Locate your solution folder and click Open, as shown in the following screenshot:
Open the solution explorer, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.