nsIRequestObserver

nsIRequestObserver

Methods

onStartRequest(aRequest, aContext)

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.

Parameters

aRequest request being observed
aContext user defined context

onStopRequest(aRequest, aContext, aStatusCode)

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.

Parameters

aRequest request being observed
aContext user defined context
aStatusCode reason for stopping (NS_OK if completed successfully)