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]
pub fn coerce<T: nsIEncodedChannelCoerce>(&self) -> &T
[src]
Cast this nsIEncodedChannel
to one of its base interfaces.
impl nsIEncodedChannel
[src]
pub unsafe fn GetContentEncodings(
&self,
aContentEncodings: *mut *const nsIUTF8StringEnumerator
) -> nsresult
[src]
&self,
aContentEncodings: *mut *const nsIUTF8StringEnumerator
) -> nsresult
/**
* 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;
pub unsafe fn GetApplyConversion(&self, aApplyConversion: *mut bool) -> nsresult
[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;
pub unsafe fn SetApplyConversion(&self, aApplyConversion: bool) -> nsresult
[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;
pub unsafe fn DoApplyContentConversions(
&self,
aNextListener: *const nsIStreamListener,
aNewNextListener: *mut *const nsIStreamListener,
aCtxt: *const nsISupports
) -> nsresult
[src]
&self,
aNextListener: *const nsIStreamListener,
aNewNextListener: *mut *const nsIStreamListener,
aCtxt: *const nsISupports
) -> nsresult
/**
* 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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIEncodedChannel
[src]
const IID: nsIID
IID: nsIID = nsID(700620006, 36068, 17894, [141, 96, 54, 200, 250, 62, 37, 91])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIEncodedChannel
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.