Struct xpcom::interfaces::nsIHttpProtocolHandler [] [src]

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

interface nsIHttpProtocolHandler : nsIProxiedProtocolHandler

Methods

impl nsIHttpProtocolHandler
[src]

[src]

Cast this nsIHttpProtocolHandler to one of its base interfaces.

impl nsIHttpProtocolHandler
[src]

[src]

/**
     * Get the HTTP advertised user agent string.
     */

[must_use] readonly attribute ACString userAgent;

[src]

/**
     * Get the application name.
     *
     * @return The name of this application (eg. "Mozilla").
     */

[must_use] readonly attribute ACString appName;

[src]

/**
     * Get the application version string.
     *
     * @return The complete version (major and minor) string. (eg. "5.0")
     */

[must_use] readonly attribute ACString appVersion;

[src]

/**
     * Get the current platform.
     *
     * @return The platform this application is running on
     *         (eg. "Windows", "Macintosh", "X11")
     */

[must_use] readonly attribute ACString platform;

[src]

/**
     * Get the current oscpu.
     *
     * @return The oscpu this application is running on
     */

[must_use] readonly attribute ACString oscpu;

[src]

/**
     * Get the application comment misc portion.
     */

[must_use] readonly attribute ACString misc;

Methods from Deref<Target = nsIProxiedProtocolHandler>

[src]

Cast this nsIProxiedProtocolHandler to one of its base interfaces.

[src]

/** Create a new channel with the given proxyInfo
     *
     * @param uri the channel uri
     * @param proxyInfo any proxy information that has already been determined,
     *        or null if channel should later determine the proxy on its own using
     *        proxyResolveFlags/proxyURI
     * @param proxyResolveFlags used if the proxy is later determined
     *        from nsIProtocolProxyService::asyncResolve
     * @param proxyURI used if the proxy is later determined from
     *        nsIProtocolProxyService::asyncResolve with this as the proxyURI name.
     *        Generally this is the same as uri (or null which has the same
     *        effect), except in the case of websockets which wants to bootstrap
     *        to an http:// channel but make its proxy determination based on
     *        a ws:// uri.
     * @param aLoadInfo used to evaluate who initated the resource request.
     */

nsIChannel newProxiedChannel2 (in nsIURI uri, in nsIProxyInfo proxyInfo, in unsigned long proxyResolveFlags, in nsIURI proxyURI, in nsILoadInfo aLoadInfo);

[src]

/** Create a new channel with the given proxyInfo
     *
     * @param uri the channel uri
     * @param proxyInfo any proxy information that has already been determined,
     *        or null if channel should later determine the proxy on its own using
     *        proxyResolveFlags/proxyURI
     * @param proxyResolveFlags used if the proxy is later determined
     *        from nsIProtocolProxyService::asyncResolve
     * @param proxyURI used if the proxy is later determined from
     *        nsIProtocolProxyService::asyncResolve with this as the proxyURI name.
     *        Generally this is the same as uri (or null which has the same
     *        effect), except in the case of websockets which wants to bootstrap
     *        to an http:// channel but make its proxy determination based on
     *        a ws:// uri.
     */

nsIChannel newProxiedChannel (in nsIURI uri, in nsIProxyInfo proxyInfo, in unsigned long proxyResolveFlags, in nsIURI proxyURI);

Trait Implementations

impl XpCom for nsIHttpProtocolHandler
[src]

IID: nsIID = nsID(3296798425, 11741, 18523, [165, 26, 55, 142, 145, 126, 117, 248])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIHttpProtocolHandler
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.