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 Gio::IOExtensionPoint#extension_by_name.

Defined in:

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

Constructors

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.


Class Method Detail

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

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

def self.g_type : UInt64 #

Instance Method Detail

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

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

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

def supports_hostname : Bool #

abstract def to_unsafe #