ProxyResolverT

#GProxyResolver provides synchronous and asynchronous network proxy resolution. #GProxyResolver is used within #GSocketClient through the method g_socket_connectable_proxy_enumerate().

Implementations of #GProxyResolver based on libproxy and GNOME settings can be found in glib-networking. GIO comes with an implementation for use inside Flatpak portals.

Members

Functions

getProxyResolverStruct
GProxyResolver* getProxyResolverStruct(bool transferOwnership)

Get the main Gtk struct

isSupported
bool isSupported()

Checks if @resolver can be used on this system. (This is used internally; g_proxy_resolver_get_default() will only return a proxy resolver that returns %TRUE for this method.)

lookup
string[] lookup(string uri, Cancellable cancellable)

Looks into the system proxy configuration to determine what proxy, if any, to use to connect to @uri. The returned proxy URIs are of the form <protocol>://[user[:password]@]host:port or direct://, where <protocol> could be http, rtsp, socks or other proxying protocol.

lookupAsync
void lookupAsync(string uri, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Asynchronous lookup of proxy. See g_proxy_resolver_lookup() for more details.

lookupFinish
string[] lookupFinish(AsyncResultIF result)

Call this function to obtain the array of proxy URIs when g_proxy_resolver_lookup_async() is complete. See g_proxy_resolver_lookup() for more details.

Meta

Since

2.26