HttpModule is assemly executed on every request. It is part of application life cycle.
You can write your custom Httpmodule. Similar to ISAPI filters that can handle specific requests.
MSDN -: "An HTTP module is an assembly that is called on every request made to your application. HTTP modules are called as part of the ASP.NET request pipeline and have access to life cycle events throughout the request."
So what exactly you do with it, is you can handle application events. Basically it will be a class with methods to handle events.
Example - BeginRequest(), EndRequest() etc.
You can create custom http module with any class by implementing interface IHttpmodule.
Implement methods from the interface.
You have to register a custom module in web.config to use it.
HTTP modules are called for all requests and responses.
You can use to examine incoming requests in application.
For More reading here are some article with implementation:
An HTTP module is an assembly that is called on every request that is made to your application. HTTP modules are called as part of the ASP.NET request pipeline and have access to life-cycle events throughout the request. HTTP modules let you examine incoming and outgoing requests and take action based on the request.
Tushar DikshitPosted Feb 13, 2018, 11:15 AM
Tushar DikshitPosted Feb 28, 2018, 9:43 AM
Suraj KumarPosted Feb 13, 2018, 6:10 AM