nsIHttpEventSink
IID: | 9475a6af-6352-4251-90f9-d65b1cd2ea15 |
Inherits From: | nsISupports |
Implement this interface to receive control over various HTTP events. The HTTP channel will try to get this interface from its notificationCallbacks attribute, and if it doesn't find it there it will look for it from its loadGroup's notificationCallbacks attribute.
These methods are called before onStartRequest, and should be handled SYNCHRONOUSLY.
This interface is implemented by the following components:
Methods
void onRedirect ( nsIHttpChannel httpChannel , nsIChannel newChannel )
void onRedirect ( nsIHttpChannel httpChannel , nsIChannel newChannel )
Called when a redirect occurs due to a HTTP response like 302. The redirection may be to a non-http channel.
- Arguments:
- httpChannel
- newChannel
- Returns:
- failure cancels redirect
Reference documentation is generated from Mozilla's source.