gio.proxy_resolver
Module for ProxyResolver interface
Types 2
interfaceProxyResolver
gio.proxy_resolver.ProxyResolver provides synchronous and asynchronous network proxy resolution. gio.proxy_resolver.ProxyResolver is used within gio.socket_client.SocketClient through the method gio.socket_connectable.SocketConnectable.proxyEnumerate.
Implementations of gio.proxy_resolver.ProxyResolver based on libproxy and GNOME settings can be found in glib-networking. GIO comes with an implementation for use inside Flatpak portals.
Methods
gio.proxy_resolver.ProxyResolver getDefault()Gets the default #GProxyResolver for the system. Returns: the default #GProxyResolver, which will be a dummy object if no proxy resolver is availablebool isSupported()Checks if resolver can be used on this system. (This is used internally; [gio.proxy_resolver.ProxyResolver.getDefault] will only return a proxy resolver that returns true for this method.) Returns:...string[] lookup(string uri, gio.cancellable.Cancellable cancellable = null)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:...void lookupAsync(string uri, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronous lookup of proxy. See [gio.proxy_resolver.ProxyResolver.lookup] for more details.string[] lookupFinish(gio.async_result.AsyncResult result)Call this function to obtain the array of proxy URIs when [gio.proxy_resolver.ProxyResolver.lookupAsync] is complete. See [gio.proxy_resolver.ProxyResolver.lookup] for more details.interfaceProxyResolverGidBuilderImpl(T)
Fluent builder implementation template for gio.proxy_resolver.ProxyResolver