Struct xpcom::interfaces::nsIHttpProtocolHandler
[−]
[src]
#[repr(C)]pub struct nsIHttpProtocolHandler { /* fields omitted */ }
interface nsIHttpProtocolHandler : nsIProxiedProtocolHandler
Methods
impl nsIHttpProtocolHandler
[src]
pub fn coerce<T: nsIHttpProtocolHandlerCoerce>(&self) -> &T
[src]
Cast this nsIHttpProtocolHandler
to one of its base interfaces.
impl nsIHttpProtocolHandler
[src]
pub unsafe fn GetUserAgent(&self, aUserAgent: &mut nsACString) -> nsresult
[src]
/**
* Get the HTTP advertised user agent string.
*/
[must_use] readonly attribute ACString userAgent;
pub unsafe fn GetAppName(&self, aAppName: &mut nsACString) -> nsresult
[src]
/**
* Get the application name.
*
* @return The name of this application (eg. "Mozilla").
*/
[must_use] readonly attribute ACString appName;
pub unsafe fn GetAppVersion(&self, aAppVersion: &mut nsACString) -> nsresult
[src]
/**
* Get the application version string.
*
* @return The complete version (major and minor) string. (eg. "5.0")
*/
[must_use] readonly attribute ACString appVersion;
pub unsafe fn GetPlatform(&self, aPlatform: &mut nsACString) -> nsresult
[src]
/**
* Get the current platform.
*
* @return The platform this application is running on
* (eg. "Windows", "Macintosh", "X11")
*/
[must_use] readonly attribute ACString platform;
pub unsafe fn GetOscpu(&self, aOscpu: &mut nsACString) -> nsresult
[src]
/**
* Get the current oscpu.
*
* @return The oscpu this application is running on
*/
[must_use] readonly attribute ACString oscpu;
pub unsafe fn GetMisc(&self, aMisc: &mut nsACString) -> nsresult
[src]
/**
* Get the application comment misc portion.
*/
[must_use] readonly attribute ACString misc;
Methods from Deref<Target = nsIProxiedProtocolHandler>
pub fn coerce<T: nsIProxiedProtocolHandlerCoerce>(&self) -> &T
[src]
Cast this nsIProxiedProtocolHandler
to one of its base interfaces.
pub unsafe fn NewProxiedChannel2(
&self,
uri: *const nsIURI,
proxyInfo: *const nsIProxyInfo,
proxyResolveFlags: uint32_t,
proxyURI: *const nsIURI,
aLoadInfo: *const nsILoadInfo,
_retval: *mut *const nsIChannel
) -> nsresult
[src]
&self,
uri: *const nsIURI,
proxyInfo: *const nsIProxyInfo,
proxyResolveFlags: uint32_t,
proxyURI: *const nsIURI,
aLoadInfo: *const nsILoadInfo,
_retval: *mut *const nsIChannel
) -> nsresult
/** 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);
pub unsafe fn NewProxiedChannel(
&self,
uri: *const nsIURI,
proxyInfo: *const nsIProxyInfo,
proxyResolveFlags: uint32_t,
proxyURI: *const nsIURI,
_retval: *mut *const nsIChannel
) -> nsresult
[src]
&self,
uri: *const nsIURI,
proxyInfo: *const nsIProxyInfo,
proxyResolveFlags: uint32_t,
proxyURI: *const nsIURI,
_retval: *mut *const nsIChannel
) -> nsresult
/** 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]
const IID: nsIID
IID: nsIID = nsID(3296798425, 11741, 18523, [165, 26, 55, 142, 145, 126, 117, 248])
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 nsIHttpProtocolHandler
[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 nsIHttpProtocolHandler
[src]
type Target = nsIProxiedProtocolHandler
The resulting type after dereferencing.
fn deref(&self) -> &nsIProxiedProtocolHandler
[src]
Dereferences the value.