Proxy.getDefaultForProtocol

Find the gio-proxy extension point for a proxy implementation that supports the specified protocol.

interface Proxy
static
getDefaultForProtocol
(
string protocol
)

Parameters

protocol string

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

Return Value

Type: gio.proxy.Proxy

return a #GProxy or NULL if protocol is not supported.