1 module soup.ProxyResolverDefault; 2 3 private import gobject.ObjectG; 4 private import soup.ProxyURIResolverIF; 5 private import soup.ProxyURIResolverT; 6 private import soup.SessionFeatureIF; 7 private import soup.SessionFeatureT; 8 private import soup.c.functions; 9 public import soup.c.types; 10 11 12 /** 13 * #SoupProxyResolverDefault is a <type>SoupProxyURIResolver</type> 14 * implementation that uses the default gio #GProxyResolver to resolve 15 * proxies. 16 * 17 * In libsoup 2.44 and later, you can set the session's 18 * #SoupSession:proxy-resolver property to the resolver returned by 19 * g_proxy_resolver_get_default() to get the same effect. Note that 20 * for "plain" #SoupSessions (ie, not #SoupSessionAsync or 21 * #SoupSessionSync), this is done for you automatically. 22 * 23 * Deprecated: Use #SoupSession:proxy-resolver 24 * 25 * Since: 2.34 26 */ 27 public class ProxyResolverDefault : ObjectG, ProxyURIResolverIF, SessionFeatureIF 28 { 29 /** the main Gtk struct */ 30 protected SoupProxyResolverDefault* soupProxyResolverDefault; 31 32 /** Get the main Gtk struct */ 33 public SoupProxyResolverDefault* getProxyResolverDefaultStruct(bool transferOwnership = false) 34 { 35 if (transferOwnership) 36 ownedRef = false; 37 return soupProxyResolverDefault; 38 } 39 40 /** the main Gtk struct as a void* */ 41 protected override void* getStruct() 42 { 43 return cast(void*)soupProxyResolverDefault; 44 } 45 46 /** 47 * Sets our main struct and passes it to the parent class. 48 */ 49 public this (SoupProxyResolverDefault* soupProxyResolverDefault, bool ownedRef = false) 50 { 51 this.soupProxyResolverDefault = soupProxyResolverDefault; 52 super(cast(GObject*)soupProxyResolverDefault, ownedRef); 53 } 54 55 // add the ProxyURIResolver capabilities 56 mixin ProxyURIResolverT!(SoupProxyResolverDefault); 57 58 // add the SessionFeature capabilities 59 mixin SessionFeatureT!(SoupProxyResolverDefault); 60 61 62 /** */ 63 public static GType getType() 64 { 65 return soup_proxy_resolver_default_get_type(); 66 } 67 }