nsIChannelEventSink
IID: | 6757d790-2916-498e-aaca-6b668a956875 |
Inherits From: | nsISupports |
Implement this interface to receive control over various channel events. Channels will try to get this interface from a channel's notificationCallbacks or, if not available there, from the loadGroup's notificationCallbacks.
These methods are called before onStartRequest, and should be handled SYNCHRONOUSLY.
Constants
Methods
void onChannelRedirect ( nsIChannel oldChannel , nsIChannel newChannel , PRUint32 flags )
void onChannelRedirect ( nsIChannel oldChannel , nsIChannel newChannel , PRUint32 flags )
Called when a redirect occurs. This may happen due to an HTTP 3xx status code.
- Arguments:
- oldChannel: The channel that's being redirected.
- newChannel: The new channel. This channel is not opened yet.
- flags: Flags indicating the type of redirect. A bitmask consisting of flags from above. One of REDIRECT_TEMPORARY and REDIRECT_PERMANENT will always be set.
Reference documentation is generated from Mozilla's source.