SimpleProxyResolver

GSimpleProxyResolver is a simple GProxyResolver implementation that handles a single default proxy, multiple URI-scheme-specific proxies, and a list of hosts that proxies should not be used for.

GSimpleProxyResolver is never the default proxy resolver, but it can be used as the base class for another proxy resolver implementation, or it can be created and used manually, such as with g_socket_client_set_proxy_resolver().

Constructors

this
this(GSimpleProxyResolver* gSimpleProxyResolver, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

this
this(string defaultProxy, string[] ignoreHosts)

Creates a new GSimpleProxyResolver See default-proxy and ignore-hosts for more details on how the arguments are interpreted.

Members

Functions

getSimpleProxyResolverStruct
GSimpleProxyResolver* getSimpleProxyResolverStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setDefaultProxy
void setDefaultProxy(string defaultProxy)

Sets the default proxy on resolver, to be used for any URIs that don't match ignore-hosts or a proxy set via g_simple_proxy_resolver_set_uri_proxy().

setIgnoreHosts
void setIgnoreHosts(string[] ignoreHosts)

Sets the list of ignored hosts.

setUriProxy
void setUriProxy(string uriScheme, string proxy)

Adds a URI-scheme-specific proxy to resolver; URIs whose scheme matches uri_scheme (and which don't match ignore-hosts) will be proxied via proxy.

Static functions

getType
GType getType()

Variables

gSimpleProxyResolver
GSimpleProxyResolver* gSimpleProxyResolver;

the main Gtk struct

Meta

Since

2.36