Proxy.Forward
Utilities for configuring and reasoning about forward proxies for client requests
type ('direct, 'tunnel) servers
A configuration for forward proxy servers
type ('direct, 'tunnel) t =
| Direct of 'direct
A proxy providing direct forwarding
| Tunnel of 'tunnel
A proxy using a tunnel (i.e. for https connections))
A forward proxying connection
val make_servers : no_proxy_patterns:string option -> default_proxy:Uri.t option -> scheme_proxies:(string * Uri.t) list -> direct:(Uri.t -> 'direct) -> tunnel:(Uri.t -> 'tunnel) -> ('direct, 'tunnel) servers
Create a new configuration of proxy servers
Disable proxies for specific hosts, specified as curl's NO_PROXY.
NO_PROXY
The default proxy to use. Proxy for specific schemes have precedence over this.
A mapping of (remote) scheme's to the desired proxy URI to user for calls with that scheme.
A function to create 'direct connections for the given proxy URI.
'direct
A function to create 'tunnel connections for the given proxy URI.
'tunnel
val get : ('direct, 'tunnel) servers -> Uri.t -> ('direct, 'tunnel) t option
get proxies uri finds the proxy configured for the uri, if there is one given proxies.
get proxies uri
uri
proxies
The configured proxy servers
The URI to find a proxy server for