1 module soup.ProxyURIResolverIF; 2 3 private import gio.Cancellable; 4 private import glib.MainContext; 5 private import gobject.ObjectG; 6 private import soup.URI; 7 private import soup.c.functions; 8 public import soup.c.types; 9 10 11 /** 12 * #SoupProxyURIResolver is an interface for finding appropriate HTTP 13 * proxies to use. 14 * 15 * Deprecated: #SoupSession now has a #SoupSession:proxy-resolver 16 * property that takes a #GProxyResolver (which is semantically 17 * identical to #SoupProxyURIResolver). 18 * 19 * Even in older releases of libsoup, you are not likely to have to 20 * implement this interface on your own; instead, you should usually 21 * just be able to use #SoupProxyResolverDefault. 22 */ 23 public interface ProxyURIResolverIF{ 24 /** Get the main Gtk struct */ 25 public SoupProxyURIResolver* getProxyURIResolverStruct(bool transferOwnership = false); 26 27 /** the main Gtk struct as a void* */ 28 protected void* getStruct(); 29 30 31 /** */ 32 public static GType getType() 33 { 34 return soup_proxy_uri_resolver_get_type(); 35 } 36 37 /** 38 * Asynchronously determines a proxy URI to use for @msg and calls 39 * @callback. 40 * 41 * Deprecated: #SoupProxyURIResolver is deprecated in favor of 42 * #GProxyResolver 43 * 44 * Params: 45 * uri = the #SoupURI you want a proxy for 46 * asyncContext = the #GMainContext to invoke @callback in 47 * cancellable = a #GCancellable, or %NULL 48 * callback = callback to invoke with the proxy address 49 * userData = data for @callback 50 * 51 * Since: 2.26.3 52 */ 53 public void getProxyUriAsync(URI uri, MainContext asyncContext, Cancellable cancellable, SoupProxyURIResolverCallback callback, void* userData); 54 55 /** 56 * Synchronously determines a proxy URI to use for @uri. If @uri 57 * should be sent via proxy, *@proxy_uri will be set to the URI of the 58 * proxy, else it will be set to %NULL. 59 * 60 * Deprecated: #SoupProxyURIResolver is deprecated in favor of 61 * #GProxyResolver 62 * 63 * Params: 64 * uri = the #SoupURI you want a proxy for 65 * cancellable = a #GCancellable, or %NULL 66 * proxyUri = on return, will contain the proxy URI 67 * 68 * Returns: %SOUP_STATUS_OK if successful, or a transport-level 69 * error. 70 * 71 * Since: 2.26.3 72 */ 73 public uint getProxyUriSync(URI uri, Cancellable cancellable, out URI proxyUri); 74 }