gio.simple_proxy_resolver
Module for [SimpleProxyResolver] class
Types 3
[gio.simple_proxy_resolver.SimpleProxyResolver] is a simple [gio.proxy_resolver.ProxyResolver] implementation that handles a single default proxy, multiple URI-scheme-specific proxies, and a list of hosts that proxies should not be used for.
[gio.simple_proxy_resolver.SimpleProxyResolver] 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 [gio.socket_client.SocketClient.setProxyResolver].
Methods
SimpleProxyResolver self()Returns `this`, for use in `with` statements.SimpleProxyResolverGidBuilder builder()Get builder for [gio.simpleproxyresolver.SimpleProxyResolver] Returns: New builder objectstring defaultProxy() @propertyGet `defaultProxy` property. Returns: The default proxy URI that will be used for any URI that doesn't match #GSimpleProxyResolver:ignore-hosts, and doesn't match any of the schemes set with [gio.s...void defaultProxy(string propval) @propertySet `defaultProxy` property. Params: propval = The default proxy URI that will be used for any URI that doesn't match #GSimpleProxyResolver:ignore-hosts, and doesn't match any of the schemes set wi...gio.proxy_resolver.ProxyResolver new_(string defaultProxy = null, string[] ignoreHosts = null)Creates a new #GSimpleProxyResolver. See #GSimpleProxyResolver:default-proxy and #GSimpleProxyResolver:ignore-hosts for more details on how the arguments are interpreted.void setDefaultProxy(string defaultProxy = null)Sets the default proxy on resolver, to be used for any URIs that don't match #GSimpleProxyResolver:ignore-hosts or a proxy set via [gio.simpleproxyresolver.SimpleProxyResolver.setUriProxy].void setIgnoreHosts(string[] ignoreHosts)Sets the list of ignored hosts.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 #GSimpleProxyResolver:ignore-hosts) will be proxied via proxy.classSimpleProxyResolverGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gio.proxy_resolver.ProxyResolverGidBuilderImpl!T
Methods
T defaultProxy(string propval)Set `defaultProxy` property. Params: propval = The default proxy URI that will be used for any URI that doesn't match #GSimpleProxyResolver:ignore-hosts, and doesn't match any of the schemes set wi...classSimpleProxyResolverGidBuilder : SimpleProxyResolverGidBuilderImpl!SimpleProxyResolverGidBuilder
Fluent builder for [gio.simple_proxy_resolver.SimpleProxyResolver]
Methods