HTTP handler Vs HTTP module

Total Post:113

 409  View(s)
Rate this:

What are the difference between HTTP Handler and HTTP Module?

  1. Post:140

    Re: HTTP handler Vs HTTP module

    HTTP handler Vs HTTP module :

    Http Handlers: 

    Http handlers are developed by developers. It a component which is to implement System.Web.IHttpHandler interface. Handlers is act like ISAPI dlls the only Handlers can be called directly URL while ISAPI Dlls are not.

    Process Request:  a processing when requests in a method. 

    IsReusable:  another request fulfill the same type of instance in HTTP Handler.

    uses for custom HTTP handlers: 

    - To create an RSS feed for a Web site. 

    - When users send a request to your site that ASP.NET calls your handler to process the request.

    - Image server

    Http Modules: 

    Http modules are objects which also participate in the request pipeline but it does job after and before HTTP Handlers complete its work. it will associate a session and cache with request. It implements System.Web.IHttpModule interface. 

    uses for HTTP modules: 

    - Security    

    - Statistics and logging

    - Custom headers 


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.