This PR adds support for using a proxy when calling gron <url>. It allows to configure a proxy through the environment variables http_proxy and https_proxy and also respects values in the no_proxy environment variables. Users can always overwrite environment variables by using the two new cli arguments -x/--proxy or --noproxy to overwrite the environment variables (e.g., to disable the proxy). The behavior is similar to curl's behavior.
This PR fixes #89.
It's currently unclear to me if we should add some docs to this - either directly in the Readme or maybe in the advanced section.
Please note: In difference to the behavior of curl, I don't have an option to configure an ALL_PROXY environment variable. Also I don't support an asterisk symbol in the no_proxy environment variable to deactivate the proxy, simply because in this case http_proxy=""/https_proxy="" or gron --proxy "" <url> could be used instead.
This PR adds support for using a proxy when calling
gron <url>
. It allows to configure a proxy through the environment variableshttp_proxy
andhttps_proxy
and also respects values in theno_proxy
environment variables. Users can always overwrite environment variables by using the two new cli arguments-x/--proxy
or--noproxy
to overwrite the environment variables (e.g., to disable the proxy). The behavior is similar to curl's behavior.This PR fixes #89.
It's currently unclear to me if we should add some docs to this - either directly in the Readme or maybe in the advanced section.
Please note: In difference to the behavior of
curl
, I don't have an option to configure anALL_PROXY
environment variable. Also I don't support an asterisk symbol in theno_proxy
environment variable to deactivate the proxy, simply because in this casehttp_proxy=""
/https_proxy=""
orgron --proxy "" <url>
could be used instead.