module Gio::ProxyResolver

Overview

#GProxyResolver provides synchronous and asynchronous network proxy resolution. #GProxyResolver is used within #GSocketClient through the method g_socket_connectable_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.


[View source]

Class Method Detail

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

[View source]
def self.default : Gio::ProxyResolver #

[View source]
def self.g_type : UInt64 #

[View source]

Instance Method Detail

def is_supported : Bool #

[View source]
def lookup(uri : String, cancellable : Gio::Cancellable | Nil) : Enumerable(String) #

[View source]
def lookup_async(uri : String, cancellable : Gio::Cancellable | Nil, callback : Gio::AsyncReadyCallback | Nil, user_data : Pointer(Void) | Nil) : Nil #

[View source]
def lookup_finish(result : Gio::AsyncResult) : Enumerable(String) #

[View source]
abstract def to_unsafe #

[View source]