filmov
tv
ASP.NET Core Tutorial – Session 7- Middleware, HTTP Pipeline

Показать описание
In this session of ASP.NET Core tutorial, we intend to introduce and explain Middleware. Moreover, we are going to talk about Request Response HTTP which is known as HTTP Pipeline. For better understanding we will show you this, in practice during the video.
Middleware
Totally, Middleware is small application/software that processes HTTP Request and Response. They have been explained in Configure method in Startup class. There are different types of Middleware and each of them has distinctive role and especial process on Request and Response HTTP.
Middleware has access to both Request and Response. Some of the Requests may pass Middleware without any process. In this case, Middleware has no relation with that Request, for instance, Static File passes UseAuthentication Middleware without any processing. In addition, some Middleware could do proper process on Request and Response then send Request or Response to next/previous Middleware.
Also, some Middleware caused short-circuit and Request will not transit to next middleware. In fact they are Terminal Middleware; so, Response goes back to previous Middleware like: Run Middleware and UseEndpoints Middleware.
HTTP Request and Response Pipeline
HTTP Request/Response cycle in ASP.NET Core. This cycle implies process of each Request by Middleware , considering the order of adding to program. This procedure is reversed in Response. In other word, at the beginning, Request has been processed by Middleware1, then when it gets Next function request will pass to Middleware2. After processing in this stage, request will pass from Middleware2 to Middleware3 which is Terminal Middleware. Now, Response has been processed by Middleware3 and the procedure will be reversed.
Tutorial Playlist
Our Social Media
Text Version of course:
Middleware
Totally, Middleware is small application/software that processes HTTP Request and Response. They have been explained in Configure method in Startup class. There are different types of Middleware and each of them has distinctive role and especial process on Request and Response HTTP.
Middleware has access to both Request and Response. Some of the Requests may pass Middleware without any process. In this case, Middleware has no relation with that Request, for instance, Static File passes UseAuthentication Middleware without any processing. In addition, some Middleware could do proper process on Request and Response then send Request or Response to next/previous Middleware.
Also, some Middleware caused short-circuit and Request will not transit to next middleware. In fact they are Terminal Middleware; so, Response goes back to previous Middleware like: Run Middleware and UseEndpoints Middleware.
HTTP Request and Response Pipeline
HTTP Request/Response cycle in ASP.NET Core. This cycle implies process of each Request by Middleware , considering the order of adding to program. This procedure is reversed in Response. In other word, at the beginning, Request has been processed by Middleware1, then when it gets Next function request will pass to Middleware2. After processing in this stage, request will pass from Middleware2 to Middleware3 which is Terminal Middleware. Now, Response has been processed by Middleware3 and the procedure will be reversed.
Tutorial Playlist
Our Social Media
Text Version of course: