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.

nsIRequestObserver

IID:fd91e2e0-1481-11d3-9333-00104ba0fd40
Inherits From:nsISupports
Status:FROZEN

This interface is implemented by the following components:


Methods

void onStartRequest ( nsIRequest request , nsISupports context ) void onStopRequest ( nsIRequest request , nsISupports context , nsresult statusCode )

void onStartRequest ( nsIRequest request , nsISupports context )

Called to signify the beginning of an asynchronous request.

An exception thrown from onStartRequest has the side-effect of causing the request to be canceled.

Arguments:
request: request being observed
context: user defined context

void onStopRequest ( nsIRequest request , nsISupports context , nsresult statusCode )

Called to signify the end of an asynchronous request. This call is always preceded by a call to onStartRequest.

An exception thrown from onStopRequest is generally ignored.

Arguments:
request: request being observed
context: user defined context
statusCode: reason for stopping (NS_OK if completed successfully)

References

This interface is the type of the following properties:

nsILoadGroup.groupObserver

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

nsIApplicationUpdateService.addDownloadListener, nsIApplicationUpdateService.removeDownloadListener, nsIAsyncStreamCopier.asyncCopy, nsIFeedProcessor.parseAsync, nsIIncrementalDownload.start, nsIRequestObserverProxy.init, nsISAXXMLReader.parseAsync, nsISimpleStreamListener.init, nsIURIChecker.asyncCheck, nsIZipWriter.processQueue

Reference documentation is generated from Mozilla's source.