Libraries:Gtk:Gio:GProxyResolver
Types
T
ParentT
Constants
InterfaceInfo : Std.Object.T
Nil : T
Functions
GetDefault() : Gtk.Gio.GProxyResolver.T
GetType() : Gtk.GObject.Type.T
Methods
:IsSupported(self @ T) : Std.Symbol.T
Checks if resolver can be used on this system. (This is used internally; GetDefault will only return a proxy resolver that returns TRUE for this method.)
:IsSupported(_ @ ParentT)
:Lookup(self @ T, uri @ Std.String.T, cancellable @ Gtk.Gio.GCancellable.T, error @ Std.Object.T) : Agg.List.T
Looks into the system proxy configuration to determine what proxy, if any, to use to connect to uri. The returned proxy URIs are of the form <protocol>://[user[:password]@]host:port or direct://, where <protocol> could be http, rtsp, socks or other proxying protocol.
If you don't know what network protocol is being used on the socket, you should use none as the URI protocol. In this case, the resolver might still return a generic proxy type (such as SOCKS), but would not return protocol-specific proxy types (such as http).
direct:// is used when no proxy is needed. Direct connection should not be attempted unless it is part of the returned array of proxies.
resolver | a T |
uri | a URI representing the destination to connect to |
cancellable | a Gtk.Gio.GCancellable.T, or NULL. [allow-none] |
error | return location for a Gtk.Glib.GError.T, or NULL |
Returns | A NULL-terminated array of proxy URIs. Must be freed with Gtk.Glib.GStrfuncs.Strfreev. [transfer full][array zero-terminated=1] |
:Lookup(_ @ ParentT, _ @ Std.String.T, _ @ Gtk.Gio.GCancellable.T, _ @ Std.Object.T)
:LookupAsync(self @ T, uri @ Std.String.T, cancellable @ Gtk.Gio.GCancellable.T, callback @ Std.Function.T, user_data @ Std.Address.T) : Std.Object.T
Asynchronous lookup of proxy. See Lookup for more details.
resolver | a T |
uri | a URI representing the destination to connect to |
cancellable | a Gtk.Gio.GCancellable.T, or NULL. [allow-none] |
callback | callback to call after resolution completes. [scope async] |
user_data | data for callback. [closure] |
:LookupAsync(_ @ ParentT, _ @ Std.String.T, _ @ Gtk.Gio.GCancellable.T, _ @ Std.Function.T, _ @ Std.Address.T)
:LookupFinish(self @ T, result @ Gtk.Gio.GAsyncResult.T, error @ Std.Object.T) : Agg.List.T
Call this function to obtain the array of proxy URIs when LookupAsync is complete. See Lookup for more details.
resolver | a T |
result | the result passed to your Gtk.Gio.GAsyncReadyCallback |
error | return location for a Gtk.Glib.GError.T, or NULL |
Returns | A NULL-terminated array of proxy URIs. Must be freed with Gtk.Glib.GStrfuncs.Strfreev. [transfer full][array zero-terminated=1] |
T provides synchronous and asynchronous network proxy resolution. T is used within Gtk.Gio.GSocketClient.T through the method Gtk.Gio.GSocketConnectable.ProxyEnumerate.