What is HttpModule in ASP.Net?

Technology CommunityCategory: ASP.NETWhat is HttpModule in ASP.Net?
VietMX Staff asked 3 years ago

HTTP modules intercept incoming requests and inject pre-processing logic in the ASP.Net request processing pipeline.

There are two ways in which you can inject logic in the request pipeline of an ASP.NET application — HttpHandlers and HttpModules. An HttpModule is a component that is part of the ASP.NET request processing pipeline and is called on every request that is made to your application. HttpModules can have access to the life cycle events of a request and hence they can be used to modify the response as well.