Gio.Proxy.get_default_for_protocol

function get_default_for_protocol(protocol: String): Gio.Proxy {
    // Gjs wrapper for g_proxy_get_default_for_protocol()
}
  

Lookup "gio-proxy" extension point for a proxy implementation that supports specified protocol.

Since 2.26

protocol

the proxy protocol name (e.g. http, socks, etc)

Returns

return a Gio.Proxy or NULL if protocol is not supported.