.NET Framework Class Library
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)
Syntax
Public Interface IHttpHandler
public interface IHttpHandler
public interface class IHttpHandler
type IHttpHandler =  interface end

The IHttpHandler type exposes the following members.

Properties
  NameDescription
Public property IsReusableGets a value indicating whether another request can use the IHttpHandler instance.
Top
Methods
  NameDescription
Public method ProcessRequestEnables processing of HTTP Web requests by a custom HttpHandler that implements the IHttpHandler interface.
Top
Remarks

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).

Version Information

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0
Platforms

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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