chickadee » http-client » determine-proxy

determine-proxy #!optional HANDLERparameter

Whenever a request is sent, the library invokes the procedure stored in this parameter to determine through what proxy to send the request, if any.

The HANDLER procedure receives one argument, the URI about to be requested, and returns either an uri-common absolute URI object representing the proxy or #f if no proxy should be used.

The URI's path and query, if present, are ignored; only the scheme and authority (host, port, username, password) are used.

The default value of this parameter is determine-proxy-from-environment.

 (lambda (url)
   (uri-reference "")))

If you just want to disable proxy support, you can do:

(determine-proxy (constantly #f))   ; From unit data-structures