ProxyResolverDefault

#SoupProxyResolverDefault is a <type>SoupProxyURIResolver</type> implementation that uses the default gio #GProxyResolver to resolve proxies.

In libsoup 2.44 and later, you can set the session's #SoupSession:proxy-resolver property to the resolver returned by g_proxy_resolver_get_default() to get the same effect. Note that for "plain" #SoupSessions (ie, not #SoupSessionAsync or #SoupSessionSync), this is done for you automatically.

More...

Constructors

this
this(SoupProxyResolverDefault* soupProxyResolverDefault, bool ownedRef)

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

Members

Functions

getProxyResolverDefaultStruct
SoupProxyResolverDefault* getProxyResolverDefaultStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Mixins

__anonymous
mixin ProxyURIResolverT!(SoupProxyResolverDefault)
Undocumented in source.
__anonymous
mixin SessionFeatureT!(SoupProxyResolverDefault)
Undocumented in source.

Static functions

getType
GType getType()

Variables

soupProxyResolverDefault
SoupProxyResolverDefault* soupProxyResolverDefault;

the main Gtk struct

Inherited Members

From ProxyURIResolverIF

getProxyURIResolverStruct
SoupProxyURIResolver* getProxyURIResolverStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getProxyUriAsync
void getProxyUriAsync(URI uri, MainContext asyncContext, Cancellable cancellable, SoupProxyURIResolverCallback callback, void* userData)

Asynchronously determines a proxy URI to use for @msg and calls @callback.

getProxyUriSync
uint getProxyUriSync(URI uri, Cancellable cancellable, URI proxyUri)

Synchronously determines a proxy URI to use for @uri. If @uri should be sent via proxy, *@proxy_uri will be set to the URI of the proxy, else it will be set to %NULL.

From SessionFeatureIF

getSessionFeatureStruct
SoupSessionFeature* getSessionFeatureStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
addFeature
bool addFeature(GType type)

Adds a "sub-feature" of type @type to the base feature @feature. This is used for features that can be extended with multiple different types. Eg, the authentication manager can be extended with subtypes of #SoupAuth.

attach
void attach(Session session)
detach
void detach(Session session)
hasFeature
bool hasFeature(GType type)

Tests if @feature has a "sub-feature" of type @type. See soup_session_feature_add_feature().

removeFeature
bool removeFeature(GType type)

Removes the "sub-feature" of type @type from the base feature @feature. See soup_session_feature_add_feature().

Detailed Description

Deprecated: Use #SoupSession:proxy-resolver

Meta

Since

2.34