module Gio::ProxyResolver

Overview

GProxyResolver provides synchronous and asynchronous network proxy resolution. GProxyResolver is used within Gio::SocketClient through the method Gio::SocketConnectable#proxy_enumerate.

Implementations of GProxyResolver based on libproxy and GNOME settings can be found in glib-networking. GIO comes with an implementation for use inside Flatpak portals.

Direct including types

Defined in:

lib/gi-crystal/src/auto/gio-2.0/proxy_resolver.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 : Gio::ProxyResolver #

def self.g_type : UInt64 #

Instance Method Detail

def is_supported : Bool #

def lookup(uri : String, cancellable : Gio::Cancellable | Nil) : Enumerable(String) #

def lookup_async(uri : String, cancellable : Gio::Cancellable | Nil, &callback : Gio::AsyncReadyCallback) : Nil #

def lookup_finish(result : Gio::AsyncResult) : Enumerable(String) #

abstract def to_unsafe #