Gio.Proxy.prototype.connect
function connect(connection: Gio.IOStream, proxy_address: Gio.ProxyAddress, cancellable: Gio.Cancellable): Gio.IOStream { // Gjs wrapper for g_proxy_connect() }
Given connection to communicate with a proxy (eg, a Gio.SocketConnection that is connected to the proxy server), this does the necessary handshake to connect to proxy_address, and if required, wraps the Gio.IOStream to handle proxy payload.
Since 2.26
- connection
- proxy_address
- cancellable
- Returns
a Gio.IOStream that will replace connection. This might be the same as connection, in which case a reference will be added.