package ocgtk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Wrappers.Simple_proxy_resolver

type t = [ `simple_proxy_resolver | `object_ ] Gobject.obj
val set_uri_proxy : t -> string -> string -> unit

Adds a URI-scheme-specific proxy to @resolver; URIs whose scheme matches @uri_scheme (and which don't match #GSimpleProxyResolver:ignore-hosts) will be proxied via @proxy.

As with #GSimpleProxyResolver:default-proxy, if @proxy starts with "socks://", #GSimpleProxyResolver will treat it as referring to all three of the socks5, socks4a, and socks4 proxy types.

val set_ignore_hosts : t -> string array -> unit

Sets the list of ignored hosts.

See #GSimpleProxyResolver:ignore-hosts for more details on how the @ignore_hosts argument is interpreted.

val set_default_proxy : t -> string option -> unit

Sets the default proxy on @resolver, to be used for any URIs that don't match #GSimpleProxyResolver:ignore-hosts or a proxy set via g_simple_proxy_resolver_set_uri_proxy().

If @default_proxy starts with "socks://", #GSimpleProxyResolver will treat it as referring to all three of the socks5, socks4a, and socks4 proxy types.