HttpHandler and HttpModuler

Posted by Bravi under ASP.NET on 9/22/2009 | Views : 1903 | Status : [Member] | Replies : 3
Any one can explain What is HttpHandler and HttpModuler
What is use of these things ..???

Thanks&Regards ,

Ravi.




Responses

Posted by: Neeks on: 9/22/2009 [Member] Bronze

Up
0
Down
HI DotNetFunda Reader,

You can get enough reference from the link given below


http://www.15seconds.com/Issue/020417.htm

Bravi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 9/22/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Day

http://www.15seconds.com/Issue/020417.htm


HTTP Module..
1.It represents more something like an modulare peace of code that's similar to another Global.asax.
2.It represent code that is in play for all page requests.
3.These are objects which also participate the pipeline.

HTTP Handler..
1.Its a handler for one request.
2.It is more like a single page.
3.These are the end point objects in ASP.NET pipeline.
4.These are essentially processes the request and produces the response

Thank you for posting at Dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Bravi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Mouli on: 9/23/2009 [Member] Starter

Up
0
Down

Let me give you some insight on how ASP .Net requests are processed by the web server.

When IIS receives an HTTP request it (inetinfo.exe ) invokes the aspnet_isapi.dll based on the ISAPI Extensions. Then the request would be forwarded to ASP.NET worker process (aspnet_wp.exe ). Worker process uses the HttpRuntime class to process the incoming request. HttpRuntime class creates the request and response objects and pushes the request to the pipeline for the further processing.

ASP.NET HTTP pipeline has various Http Modules that can inspect the incoming request and make decisions that affect the internal flow of the request. These modules provide additional services like creating a session and associating with the request; OutputCache which handles returning and caching the page's HTML output; Authentication which attempts to authenticate the user based on the authentication scheme; saving the session state after HTTP handler has
Completed executtion; SessionStateModule etc.,

After passing through the HTTP modules, the request reaches an HTTP handler which generates the output that will be sent back to the client browser. HTTP handlers are the endpoints in the ASP.NET HTTP pipeline. All ASP .Net web pages .aspx are derived System.Web.UI.Page class which itself is an HttpHandler. Page class implements IHttpHandler interface.

Bravi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response