diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-01-10 12:01:39 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-01-13 11:06:01 +0100 |
commit | 80bbebef4d055dfdefd47cd754eb9ad625e33b54 (patch) | |
tree | 433b2a9374e542ad733f649915a0d0247e062f2e /doc/ref/web.texi | |
parent | c9b83a27c718e767b89c6ac38a6cd93e23d48ba6 (diff) | |
download | guile-80bbebef4d055dfdefd47cd754eb9ad625e33b54.tar.gz |
web: Add 'current-https-proxy' and honor $https_proxy.
* module/web/client.scm (current-https-proxy): New variable.
(setup-http-tunnel): New procedure.
(open-socket-for-uri): Move 'http-proxy', 'uri', and 'addresses' inside
'open-socket'. Remove 'with-https-proxy' macro. Add call to
'setup-http-tunnel'. Honor 'current-https-proxy' in 'open-socket'.
* doc/ref/web.texi (Web Client): Document 'current-https-proxy'.
* doc/ref/guile.texi: Update copyright years.
Based on Guix commit 9bc8175cfa6b23c31f6c43531377d266456e430e.
Co-authored-by: Sou Bunnbu (宋文武) <iyzsong@gmail.com>
Diffstat (limited to 'doc/ref/web.texi')
-rw-r--r-- | doc/ref/web.texi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/ref/web.texi b/doc/ref/web.texi index c642d0484..91b3a4edf 100644 --- a/doc/ref/web.texi +++ b/doc/ref/web.texi @@ -1,6 +1,6 @@ @c -*-texinfo-*- @c This is part of the GNU Guile Reference Manual. -@c Copyright (C) 2010, 2011, 2012, 2013, 2015, 2018, 2019 Free Software Foundation, Inc. +@c Copyright (C) 2010, 2011, 2012, 2013, 2015, 2018, 2019, 2020 Free Software Foundation, Inc. @c See the file guile.texi for copying conditions. @node Web @@ -1540,10 +1540,11 @@ Another option, good but not as performant, would be to use threads, possibly via par-map or futures. @deffn {Scheme Parameter} current-http-proxy +@deffnx {Scheme Parameter} current-https-proxy Either @code{#f} or a non-empty string containing the URL of the HTTP -proxy server to be used by the procedures in the @code{(web client)} +or HTTPS proxy server to be used by the procedures in the @code{(web client)} module, including @code{open-socket-for-uri}. Its initial value is -based on the @env{http_proxy} environment variable. +based on the @env{http_proxy} and @env{https_proxy} environment variables. @example (current-http-proxy) @result{} "http://localhost:8123/" |