Struct xpcom::interfaces::nsIHttpPushListener [] [src]

#[repr(C)]
pub struct nsIHttpPushListener { /* fields omitted */ }

interface nsIHttpPushListener : nsISupports

/**
 * nsIHttpPushListener
 *
 * Used for triggering when a HTTP/2 push is received.
 *
 */

Methods

impl nsIHttpPushListener
[src]

[src]

Cast this nsIHttpPushListener to one of its base interfaces.

impl nsIHttpPushListener
[src]

[src]

/**
   * When provided as a notificationCallback to an httpChannel, this.onPush()
   * will be invoked when there is a >= Http2 push to that
   * channel. The push may be in progress.
   *
   * The consumer must start the new channel in the usual way by calling
   * pushChannel.AsyncOpen with a nsIStreamListener object that
   * will receive the normal sequence of OnStartRequest(),
   * 0 to N OnDataAvailable(), and onStopRequest().
   *
   * The new channel can be canceled after the AsyncOpen if it is not wanted.
   *
   * @param associatedChannel
   *        the monitor channel that was recieved on
   * @param pushChannel
   *        a channel to the resource which is being pushed
   */

void onPush (in nsIHttpChannel associatedChannel, in nsIHttpChannel pushChannel);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIHttpPushListener
[src]

IID: nsIID = nsID(225240476, 44381, 17696, [180, 211, 9, 102, 72, 104, 242, 121])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIHttpPushListener
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIHttpPushListener
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.