module Gio::Proxy

Overview

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:

lib/gi-crystal/src/auto/gio-2.0/proxy.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.default_for_protocol(protocol : String) : Gio::Proxy? #

def self.g_type : UInt64 #

Instance Method Detail

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

def connect_async(connection : Gio::IOStream, proxy_address : Gio::ProxyAddress, cancellable : Gio::Cancellable?, callback : Gio::AsyncReadyCallback?, user_data : Pointer(Void)?) : Nil #

def connect_finish(result : Gio::AsyncResult) : Gio::IOStream #

def supports_hostname : Bool #

abstract def to_unsafe #