nsIRequestObserver
| IID: | fd91e2e0-1481-11d3-9333-00104ba0fd40 |
| Inherits From: | nsISupports |
| Status: | FROZEN |
This interface is implemented by the following components:
- @mozilla.org/autoconfiguration;1
- @mozilla.org/browser/httpindex-service;1
- @mozilla.org/dirIndexParser;1
- @mozilla.org/docloader;1
- @mozilla.org/docloaderservice;1
- @mozilla.org/embedding/browser/nsWebBrowserPersist;1
- @mozilla.org/messenger/copymessagestreamlistener;1
- @mozilla.org/messenger/localfoldercompactor;1
- @mozilla.org/messenger/offlinestorecompactor;1
- @mozilla.org/network/async-stream-listener;1
- @mozilla.org/network/downloader;1
- @mozilla.org/network/input-stream-channel;1
- @mozilla.org/network/request-observer-proxy;1
- @mozilla.org/network/simple-stream-listener;1
- @mozilla.org/network/stream-io-channel;1
- @mozilla.org/network/stream-listener-tee;1
- @mozilla.org/network/stream-loader;1
- @mozilla.org/network/unichar-stream-loader;1
- @mozilla.org/rdf/datasource;1?name=httpindex
- @mozilla.org/rdf/datasource;1?name=xml-datasource
- @mozilla.org/streamconv;1?from=application/http-index-format&to=text/html
- @mozilla.org/streamconv;1?from=application/mac-binhex40&to=*/*
- @mozilla.org/streamconv;1?from=application/x-unknown-content-type&to=*/*
- @mozilla.org/streamconv;1?from=message/rfc822&to=*/*
- @mozilla.org/streamconv;1?from=message/rfc822&to=application/vnd.mozilla.xul+xml
- @mozilla.org/streamconv;1?from=message/rfc822&to=text/html
- @mozilla.org/streamconv;1?from=multipart/byteranges&to=*/*
- @mozilla.org/streamconv;1?from=multipart/mixed&to=*/*
- @mozilla.org/streamconv;1?from=multipart/x-mixed-replace&to=*/*
- @mozilla.org/streamconv;1?from=text/ftp-dir&to=application/http-index-format
- @mozilla.org/streamconv;1?from=text/gopher-dir&to=application/http-index-format
- @mozilla.org/streamconv;1?from=text/plain&to=text/html
- @mozilla.org/xml-rpc/client;1
- @mozilla.org/network/sync-stream-listener;1
- @mozilla.org/network/incremental-download;1
- @mozilla.org/streamconv;1?from=application/x-vnd.mozilla.maybe-text&to=*/*
- @mozilla.org/feed-processor;1
- @mozilla.org/network/binary-detector;1
- @mozilla.org/network/content-sniffer;1
- @mozilla.org/saxparser/xmlreader;1
- @mozilla.org/streamconv;1?from=application/vnd.mozilla.maybe.audio.feed&to=*/*
- @mozilla.org/streamconv;1?from=application/vnd.mozilla.maybe.feed&to=*/*
- @mozilla.org/streamconv;1?from=application/vnd.mozilla.maybe.video.feed&to=*/*
- @mozilla.org/streamconv;1?from=uncompressed&to=deflate
- @mozilla.org/streamconv;1?from=uncompressed&to=gzip
- @mozilla.org/streamconv;1?from=uncompressed&to=rawdeflate
- @mozilla.org/streamconv;1?from=uncompressed&to=x-gzip
- @mozilla.org/url-classifier/streamupdater;1
- @mozilla.org/zipwriter;1
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:
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.
