diff options
author | adamw <adam@warski.org> | 2017-07-21 14:43:20 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-07-21 14:43:20 +0200 |
commit | a6b4a71d59da928ddb326671b1058501bb1a45c5 (patch) | |
tree | 8b1a2bc5d4196ff252d5ccd00cd546657f92fd14 /README.md | |
parent | 2d099f6832f6e362b9a4cd48e81a16c8d77adeaf (diff) | |
download | sttp-a6b4a71d59da928ddb326671b1058501bb1a45c5.tar.gz sttp-a6b4a71d59da928ddb326671b1058501bb1a45c5.tar.bz2 sttp-a6b4a71d59da928ddb326671b1058501bb1a45c5.zip |
AcceptEncoding + response decompression
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -72,10 +72,10 @@ First, import: import com.softwaremill.sttp._ ``` -This brings into scope `sttp`, the empty request, from which all request -definitions start. This empty request can be customised, each time yielding -a new, immutable request description (unless a mutable body is set on the -request, such as a byte array). +This brings into scope `sttp`, the starting request (it's an empty request +with the `Accept-Encoding: gzip, defalte` header added). This request can +be customised, each time yielding a new, immutable request description +(unless a mutable body is set on the request, such as a byte array). For example, we can set a cookie, string-body and specify that this should be a `POST` request to a given URI: |