Struct xpcom::interfaces::nsIEncodedChannel [] [src]

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

interface nsIEncodedChannel : nsISupports

/**
 * A channel interface which allows special handling of encoded content
 */

Methods

impl nsIEncodedChannel
[src]

[src]

Cast this nsIEncodedChannel to one of its base interfaces.

impl nsIEncodedChannel
[src]

[src]

/**
     * This attribute holds the MIME types corresponding to the content
     * encodings on the channel.  The enumerator returns nsISupportsCString
     * objects.  The first one corresponds to the outermost encoding on the
     * channel and then we work our way inward.  "identity" is skipped and not
     * represented on the list.  Unknown encodings make the enumeration stop.
     * If you want the actual Content-Encoding value, use
     * getResponseHeader("Content-Encoding").
     *
     * When there is no Content-Encoding header, this property is null.
     *
     * Modifying the Content-Encoding header on the channel will cause
     * this enumerator to have undefined behavior.  Don't do it.
     *
     * Also note that contentEncodings only exist during or after OnStartRequest.
     * Calling contentEncodings before OnStartRequest is an error.
     */

readonly attribute nsIUTF8StringEnumerator contentEncodings;

[src]

/**
     * This attribute controls whether or not content conversion should be
     * done per the Content-Encoding response header.  applyConversion can only
     * be set before or during OnStartRequest.  Calling this during
     * OnDataAvailable is an error.
     *
     * TRUE by default.
     */

attribute boolean applyConversion;

[src]

/**
     * This attribute controls whether or not content conversion should be
     * done per the Content-Encoding response header.  applyConversion can only
     * be set before or during OnStartRequest.  Calling this during
     * OnDataAvailable is an error.
     *
     * TRUE by default.
     */

attribute boolean applyConversion;

[src]

/**
     * This function will start converters if they are available.
     * aNewNextListener will be nullptr if no converter is available.
     */

void doApplyContentConversions (in nsIStreamListener aNextListener, out nsIStreamListener aNewNextListener, in nsISupports aCtxt);

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 nsIEncodedChannel
[src]

IID: nsIID = nsID(700620006, 36068, 17894, [141, 96, 54, 200, 250, 62, 37, 91])

[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 nsIEncodedChannel
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIEncodedChannel
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.