module Gio::Proxy


A #GProxy handles connecting to a remote host via a given type of proxy server. It is implemented by the 'gio-proxy' extension point. The extensions are named after their proxy protocol name. As an example, a SOCKS5 proxy implementation can be retrieved with the name 'socks5' using the function g_io_extension_point_get_extension_by_name().

Defined in:



Class Method Summary

Instance Method Summary

Constructor Detail

def self.cast(obj : GObject::Object) : self #

Cast a GObject::Object to self, throws a TypeCastError if the cast can't be made.

[View source]

Class Method Detail

def self.cast?(obj : GObject::Object) : self | Nil #

[View source]
def self.default_for_protocol(protocol : String) : Gio::Proxy | Nil #

[View source]
def self.g_type : UInt64 #

[View source]

Instance Method Detail

def connect(connection : Gio::IOStream, proxy_address : Gio::ProxyAddress, cancellable : Gio::Cancellable | Nil) : Gio::IOStream #

[View source]
def connect_async(connection : Gio::IOStream, proxy_address : Gio::ProxyAddress, cancellable : Gio::Cancellable | Nil, &callback : Gio::AsyncReadyCallback) : Nil #

[View source]
def connect_finish(result : Gio::AsyncResult) : Gio::IOStream #

[View source]
def supports_hostname : Bool #

[View source]
abstract def to_unsafe #

[View source]