diff options
author | adamw <adam@warski.org> | 2017-10-12 19:23:09 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-10-12 19:23:09 +0200 |
commit | 7bf4d02da823c21b27cf20ba0b764b511ac69432 (patch) | |
tree | 04b9ab557c4af82b9970af386e6f4f9e4292e472 /docs/conf/proxy.rst | |
parent | 7885188a982c193e26f8ca6bc9aea8f6a642b32d (diff) | |
download | sttp-7bf4d02da823c21b27cf20ba0b764b511ac69432.tar.gz sttp-7bf4d02da823c21b27cf20ba0b764b511ac69432.tar.bz2 sttp-7bf4d02da823c21b27cf20ba0b764b511ac69432.zip |
More docs
Diffstat (limited to 'docs/conf/proxy.rst')
-rw-r--r-- | docs/conf/proxy.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/conf/proxy.rst b/docs/conf/proxy.rst new file mode 100644 index 0000000..85b140a --- /dev/null +++ b/docs/conf/proxy.rst @@ -0,0 +1,15 @@ +Proxy support +============= + +A proxy can be specified when creating a backend:: + + import com.softwaremill.sttp._ + + implicit val backend = HttpURLConnectionBackend( + options = SttpBackendOptions.httpProxy("some.host", 8080)) + + sttp + .get(uri"...") + .send() // uses the proxy + + |