diff options
author | Michał Siatkowski <msiatkowski@pl.imshealth.com> | 2017-10-29 14:59:14 +0100 |
---|---|---|
committer | Michał Siatkowski <msiatkowski@pl.imshealth.com> | 2017-10-30 15:37:42 +0100 |
commit | 329b37d6fa8a53f211df81b894da971bf16aba71 (patch) | |
tree | 086273334b486725a9fd4270b4a506a418dd2f40 /docs | |
parent | ae0d7f698c407413339b45067f959f611fbe90ef (diff) | |
download | sttp-329b37d6fa8a53f211df81b894da971bf16aba71.tar.gz sttp-329b37d6fa8a53f211df81b894da971bf16aba71.tar.bz2 sttp-329b37d6fa8a53f211df81b894da971bf16aba71.zip |
Loading system proxy values by default
Diffstat (limited to 'docs')
-rw-r--r-- | docs/conf/proxy.rst | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/conf/proxy.rst b/docs/conf/proxy.rst index 85b140a..bcb1b3a 100644 --- a/docs/conf/proxy.rst +++ b/docs/conf/proxy.rst @@ -1,7 +1,16 @@ Proxy support ============= -A proxy can be specified when creating a backend:: +sttp library by default checks for your System proxy properties (`docs <https://docs.oracle.com/javase/8/docs/api/java/net/doc-files/net-properties.html>`_): + +Following settings are checked: + +1. ``socksProxyHost`` and ``socksProxyPort`` *(default: 1080)* +2. ``http.proxyHost`` and ``http.proxyPort`` *(default: 80)* + +Settings are loaded **in given order** and the **first existing value** is being used. + +Otherwise, proxy values can be specified manually when creating a backend:: import com.softwaremill.sttp._ |