WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIHttpRequestHandler

IID:2bbb4db7-d285-42b3-a3ce-142b8cc7e139
Inherits From:nsISupports

Methods

void handle ( nsIHttpRequestMetadata metadata , nsIHttpResponse response )

void handle ( nsIHttpRequestMetadata metadata , nsIHttpResponse response )

Processes the HTTP request represented by metadata and initializes the passed-in response to reflect the correct HTTP response.

Note that in some uses of nsIHttpRequestHandler, this method is required to not throw an exception; in the general case, however, this method may throw an exception (causing an HTTP 500 response to occur).

Arguments:
metadata: data representing an HTTP request
response: an initially-empty response which must be modified to reflect the data which should be sent as the response to the request described by metadata

References

This interface is passed as an argument to the following methods:

nsIHttpServer.registerErrorHandler, nsIHttpServer.registerPathHandler, nsIHttpServer.setIndexHandler

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com