Monday, February 20, 2012

Http Handler in Asp.net

Basically all of you know what does the http handler in asp.net .We can simply say about HTTP handler is get the input from the the HTTP packet,do some tasks and prepares a return HTTP packet.Here i will explain the brief explanation about handler working in asp.net

A Http handler component is an instance of a class that implements the IHttpHandler interface.This is base of the Asp.net run time architecture.
public interface IHttpHandler
{
public void ProcessRequest(HttpContext context);
public bool IsReusable;

}
The Process Request takes the context as the input and ensure that the request is serviced.In the case of synchronous handlers,when Process Request returns,the output is ready to go the client.For this some methods are work in IHttpAsyncHandler interface

No comments:

Bel