Search completed in 1.13 seconds.
4 results for "nsiproxiedprotocolhandler":
nsIProtocolProxyService
lveAsync instead Previous doc This method returns a nsIProxyInfo instance that identifies a proxy to be used for loading the given URI. Otherwise, this method returns null indicating that a direct connection should be used. If this proxy is unavailable, getFailoverForProxy() may be called to determine the correct secondary proxy to be used. If the protocol handler for the given URI supports
nsIProxiedProtocolHandler, then the nsIProxyInfo instance returned from resolve may be passed to the
nsIProxiedProtocolHandler.newProxiedChannel() method to create a nsIChannel to the given URI that uses the specified proxy. However, if the nsIProxyInfo type is "http", then it means that the given URI should be loaded using the HTTP protocol handler, which also supports
nsIProxiedProtocolHandler. nsIProxyInfo resolve( ...
... An nsIProxyInfo object or null for a direct connection. Note: If PAC is configured, and the PAC file has not yet been loaded, then this method will return a nsIProxyInfo instance with a type of "unknown" to indicate to the consumer that asyncResolve should be used to wait for the PAC file to finish loading. Otherwise, the consumer may choose to treat the result as type "direct" if desired. See
nsIProxiedProtocolHandler.newProxiedChannel(). asyncResolve() This method is an asychronous version of the resolve method. Unlike resolve, this method is guaranteed not to block the calling thread waiting for DNS queries to complete. This method is intended as a substitute for resolve when the result is not needed immediately. nsICancelable asyncResolve( in nsIURI aURI, in unsigned long aFlags, in nsIProtoco...
... registered. aPosition The position of the filter. ...
nsIProtocolHandler
urce (URI_IS_UI_RESOURCE), or something else that would not hit the network. URI_OPENING_EXECUTES_SCRIPT 1<<13 URIs for this protocol execute script when they are opened. ALLOWS_PROXY 1<<2 This protocol handler can be proxied via SOCKS or HTTP (such as IRC, SMTP, and HTTP, for example). If the protocol supports transparent proxying, the handler should implement the
nsIProxiedProtocolHandler interface. If the protocol only supports HTTP proxying, it doesn't need to support
nsIProxiedProtocolHandler, but should instead set the ALLOWS_PROXY_HTTP flag. ALLOWS_PROXY_HTTP 1<<3 The protocol handler can be proxied using an HTTP proxy (for example, HTTP and FTP). nsIIOService.newChannelFromURI() will feed URIs from this protocol handler to the HTTP protocol handler instead. Th...
...f this is null, then UTF-8 encoding is assumed and no character transformation is not performed. aBaseURI If null, aSpec must specify an absolute URI. ...
Proxies in Necko
Proxies are implemented transparently to necko users. This means that callers can just create an nsIChannel, not needing to worry about whether the channel will use a proxy or not The basic interfaces for proxies are: nsIProxyInfo, nsIProtocolProxyService, and
nsIProxiedProtocolHandler nsIProxyInfo is a simple helper which stores information about the type of the proxy, its host and its port. nsIIOService The decision whether to use a proxy is made in nsIOService::NewChannelFromURI. It first asks the nsIProtocolProxyService for an nsIProxyInfo. Depending on the type of the proxy info, it either asks the HTTP Protocol Handler or the protocol handler for the requested URI for a new channel with the nsIProxyInfo - if the channel supports
nsIProxiedProtocolHandler. Otherwise, the proxy info is discarded. nsIPr...
nsISocketTransportService
e the aProxyInfo instead. aHost Specifies the target hostname or IP address literal of the peer for this socket. aPort Specifies the target port of the peer for this socket. aProxyInfo Specifies the transport-layer proxy type to use. Set to null if no proxy should be used. For more details on communicating information about proxies like SOCKS (which are transparent to upper protocols), see
nsIProxiedProtocolHandler , nsIProtocolProxyService or Proxies in Necko. Return value An nsISocketTransport containing the SocketTransport. init() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) void init(); Parameters None. Native code only! notifyWhenCanAttachSocket If the number of sockets reaches the limit, then consumers can be notified when the number of sockets becomes less tha...