Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIHttpEventSink Interface Reference

nsIHttpEventSink More...

import "nsIHttpEventSink.idl";

Inheritance diagram for nsIHttpEventSink:
Inheritance graph
Collaboration diagram for nsIHttpEventSink:
Collaboration graph

List of all members.

Public Member Functions

void onRedirect (in nsIHttpChannel httpChannel, in nsIChannel newChannel)
 Called when a redirect occurs due to a HTTP response like 302.

Detailed Description


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.

Newly written code should use nsIChannelEventSink instead of this interface.

Definition at line 61 of file nsIHttpEventSink.idl.

Member Function Documentation

void nsIHttpEventSink::onRedirect ( in nsIHttpChannel  httpChannel,
in nsIChannel  newChannel 

Called when a redirect occurs due to a HTTP response like 302.

The redirection may be to a non-http channel.

failure cancels redirect

The documentation for this interface was generated from the following file: