DefaultHttpHandler Class

 

Represents the properties and methods of a default HTTP handler.

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

System.Object
  System.Web.DefaultHttpHandler

type DefaultHttpHandler = 
    class
        interface IHttpAsyncHandler
        interface IHttpHandler
    end

NameDescription
System_CAPS_pubmethodDefaultHttpHandler()

Initializes a new instance of the DefaultHttpHandler class.

NameDescription
System_CAPS_protpropertyContext

Gets the context that is associated with the current DefaultHttpHandler object.

System_CAPS_protpropertyExecuteUrlHeaders

Gets a collection of request headers and request values to transfer along with the request.

System_CAPS_pubpropertyIsReusable

Gets a Boolean value indicating that another request can use the current instance of the DefaultHttpHandler class.

NameDescription
System_CAPS_pubmethodBeginProcessRequest(HttpContext, AsyncCallback, Object)

Initiates an asynchronous call to the HTTP handler.

System_CAPS_pubmethodEndProcessRequest(IAsyncResult)

Provides an end method for an asynchronous process.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodOnExecuteUrlPreconditionFailure()

Called when preconditions prevent the DefaultHttpHandler object from processing a request.

System_CAPS_pubmethodOverrideExecuteUrlPath()

Overrides the target URL for the current request.

System_CAPS_pubmethodProcessRequest(HttpContext)

Enables a DefaultHttpHandler object to process of HTTP Web requests.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

A DefaultHttpHandler object intercepts incoming requests in the HTTP pipeline when both request interception has been configured through Internet Information Services (IIS) 6.0 and no explicit bindings apply to the requested extension.

Request interception can be set up through the wildcard application mapping feature introduced in IIS 6.0. For more information, search the MSDN Library for information about using wildcard application maps to remap a URL.

The DefaultHttpHandler class implements the IHttpAsyncHandler interface to provide asynchronous request processing. For general information about HTTP handlers, see HTTP Handlers and HTTP Modules Overview. Additionally, for more information see the following:

Classes can derive from the DefaultHttpHandler class to provide customized handling of requests. An asynchronous HTTP handler that is derived from the DefaultHttpHandler could override the BeginProcessRequest method to change how requests are processed.

A DefaultHttpHandler does not use ASP.NET errors. Existing content that uses IIS errors or a propriety ISAPI custom error mechanism would work unchanged.

The following code example demonstrates how to implement a customized HTTP handler by deriving from the DefaultHttpHandler class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: