IHttpHandler Interface
Collapse the table of content
Expand the table of content

IHttpHandler Interface

Defines the contract that ASP.NET implements to synchronously process HTTP Web requests using custom HTTP handlers.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

public interface IHttpHandler

The IHttpHandler type exposes the following members.

Public propertyIsReusableGets a value indicating whether another request can use the IHttpHandler instance.

Public methodProcessRequestEnables processing of HTTP Web requests by a custom HttpHandler that implements the IHttpHandler interface.

You can write custom HTTP handlers to process specific, predefined types of HTTP requests in any Common Language Specification (CLS) compliant language. Executable code defined in the HttpHandler classes, rather than conventional ASP or ASP.NET Web pages, responds to these specific requests. HTTP handlers give you a means of interacting with the low-level request and response services of the IIS Web server and provide functionality much like ISAPI extensions but with a simpler programming model.

If your handler will access session state values, it must implement the IRequiresSessionState interface (a marker interface with no methods).

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

© 2015 Microsoft