Basics
Guides
API Reference
Basics
Guides
API Reference
[198:14] static extends: object
Generated metadata helpers for SimpleProxyResolver class surfaces.
properties ()
Returns property metadata for
SimpleProxyResolver.
A list.[18:7] extends: object
GSimpleProxyResolver is a simple [iface@Gio.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.
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
[method@Gio.SocketClient.set_proxy_resolver].
SimpleProxyResolver (Handle = null)
Creates a new
SimpleProxyResolverby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asObject ()
Wraps this handle as
Object.
A Object object.asProxyResolver ()
Wraps this handle as
ProxyResolver.
A ProxyResolver object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setDefaultproxy (string Value)
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 g_simple_proxy_resolver_set_uri_proxy(). Note that as a special case, if this URI starts with "socks://", #GSimpleProxyResolver will treat it as referring to all three of the socks5, socks4a, and socks4 proxy types.
Value is the new property value.None.set_default_proxy (string default_proxy)
Sets the default proxy on @resolver, to be used for any URIs that don't match #GSimpleProxyResolver:ignore-hosts or a proxy set via g_simple_proxy_resolver_set_uri_proxy(). If @default_proxy starts with "socks://", #GSimpleProxyResolver will treat it as referring to all three of the socks5, socks4a, and socks4 proxy types.
default_proxy is the default proxy to use.None.set_ignore_hosts (list ignore_hosts)
Sets the list of ignored hosts. See #GSimpleProxyResolver:ignore-hosts for more details on how the @ignore_hosts argument is interpreted.
ignore_hosts is %NULL-terminated list of hosts/IP addresses to not use a proxy for.None.set_uri_proxy (string uri_scheme, string proxy)
Adds a URI-scheme-specific proxy to @resolver; URIs whose scheme matches
(and which don't match #GSimpleProxyResolver:ignore-hosts) will be proxied via @proxy. As with #GSimpleProxyResolver:default-proxy, if @proxy starts with "socks://", #GSimpleProxyResolver will treat it as referring to all three of the socks5, socks4a, and socks4 proxy types.uri_scheme is the URI scheme to add a proxy for.proxy is the proxy to use for @uri_scheme.None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.