Skip to content

Commit 5ab956d

Browse files
committed
Release 4.0.9
1 parent b719b22 commit 5ab956d

26 files changed

+137
-113
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The library is available for Scala 2.12, 2.13 and 3. Supported platforms are the
1515
Here's a quick example of sttp client in action, runnable using [scala-cli](https://scala-cli.virtuslab.org):
1616

1717
```scala
18-
//> using dep com.softwaremill.sttp.client4::core:4.0.8
18+
//> using dep com.softwaremill.sttp.client4::core:4.0.9
1919

2020
import sttp.client4.quick.*
2121

@@ -34,7 +34,7 @@ Additionally, sttp client seamlessly integrates with popular libraries for JSON
3434
Some more features: URI interpolation, a self-managed backend, and type-safe HTTP error/success representation, are demonstrated by the below example:
3535

3636
```scala
37-
//> using dep com.softwaremill.sttp.client4::core:4.0.8
37+
//> using dep com.softwaremill.sttp.client4::core:4.0.9
3838

3939
import sttp.client4.*
4040

@@ -69,15 +69,15 @@ sttp (v2) documentation is available at [sttp.softwaremill.com/en/v2](https://st
6969

7070
sttp (v1) documentation is available at [sttp.softwaremill.com/en/v1](https://sttp.softwaremill.com/en/v1).
7171

72-
scaladoc is available at [https://www.javadoc.io](https://www.javadoc.io/doc/com.softwaremill.sttp.client4/core_3/4.0.8)
72+
scaladoc is available at [https://www.javadoc.io](https://www.javadoc.io/doc/com.softwaremill.sttp.client4/core_3/4.0.9)
7373

7474
## Quickstart with scala-cli
7575

7676
Add the following directive to the top of your scala file to add the core sttp dependency:
7777
If you are using [scala-cli](https://scala-cli.virtuslab.org), you can quickly start experimenting with sttp by copy-pasting the following:
7878

7979
```
80-
//> using dep "com.softwaremill.sttp.client4::core:4.0.8"
80+
//> using dep "com.softwaremill.sttp.client4::core:4.0.9"
8181
import sttp.client4.quick.*
8282
quickRequest.get(uri"http://httpbin.org/ip").send()
8383
```
@@ -89,7 +89,7 @@ The `quick` package import brings in the sttp API and a pre-configured, global s
8989
Similarly, using [Ammonite](http://ammonite.io):
9090

9191
```scala
92-
import $ivy.`com.softwaremill.sttp.client4::core:4.0.8`
92+
import $ivy.`com.softwaremill.sttp.client4::core:4.0.9`
9393
import sttp.client4.quick.*
9494
quickRequest.get(uri"http://httpbin.org/ip").send()
9595
```
@@ -99,7 +99,7 @@ quickRequest.get(uri"http://httpbin.org/ip").send()
9999
Add the following dependency:
100100

101101
```scala
102-
"com.softwaremill.sttp.client4" %% "core" % "4.0.8"
102+
"com.softwaremill.sttp.client4" %% "core" % "4.0.9"
103103
```
104104

105105
Then, import:
@@ -156,7 +156,7 @@ The documentation is typechecked using [mdoc](https://scalameta.org/mdoc/). The
156156

157157
When generating documentation, it's best to set the version to the current one, so that the generated doc files don't include modifications with the current snapshot version.
158158

159-
That is, in sbt run: `set ThisBuild/version := "4.0.8"`, before running `mdoc` in `docs`.
159+
That is, in sbt run: `set ThisBuild/version := "4.0.9"`, before running `mdoc` in `docs`.
160160

161161
### Testing the Scala.JS backend
162162

generated-docs/out/backends/akka.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This backend is based on [akka-http](http://doc.akka.io/docs/akka-http/current/scala/http/). To use, add the following dependency to your project:
44

55
```
6-
"com.softwaremill.sttp.client4" %% "akka-http-backend" % "4.0.8"
6+
"com.softwaremill.sttp.client4" %% "akka-http-backend" % "4.0.9"
77
```
88

99
A fully **asynchronous** backend. Uses the `Future` effect to return responses. There are also [other `Future`-based backends](future.md), which don't depend on Akka.

generated-docs/out/backends/catseffect.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Also note that the [http4s](http4s.md) backend can also be created for a type im
1414
Firstly, add the following dependency to your project:
1515

1616
```scala
17-
"com.softwaremill.sttp.client4" %% "cats" % "4.0.8"
17+
"com.softwaremill.sttp.client4" %% "cats" % "4.0.9"
1818
```
1919

2020
Obtain a cats-effect `Resource` which creates the backend, and closes the thread pool after the resource is no longer used:
@@ -83,9 +83,9 @@ Firstly, add the following dependency to your project:
8383

8484
```scala
8585
// for cats-effect 3.x
86-
"com.softwaremill.sttp.client4" %% "armeria-backend-cats" % "4.0.8"
86+
"com.softwaremill.sttp.client4" %% "armeria-backend-cats" % "4.0.9"
8787
// or for cats-effect 2.x
88-
"com.softwaremill.sttp.client4" %% "armeria-backend-cats-ce2" % "4.0.8"
88+
"com.softwaremill.sttp.client4" %% "armeria-backend-cats-ce2" % "4.0.9"
8989
```
9090

9191
create client:

generated-docs/out/backends/finagle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
To use, add the following dependency to your project:
44

55
```
6-
"com.softwaremill.sttp.client4" %% "finagle-backend" % "4.0.8"
6+
"com.softwaremill.sttp.client4" %% "finagle-backend" % "4.0.9"
77
```
88

99
Next you'll need to add an implicit value:

generated-docs/out/backends/fs2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Creation of the backend can be done in two basic ways:
1212
Firstly, add the following dependency to your project:
1313

1414
```scala
15-
"com.softwaremill.sttp.client4" %% "fs2" % "4.0.8" // for cats-effect 3.x & fs2 3.x
15+
"com.softwaremill.sttp.client4" %% "fs2" % "4.0.9" // for cats-effect 3.x & fs2 3.x
1616
// or
17-
"com.softwaremill.sttp.client4" %% "fs2ce2" % "4.0.8" // for cats-effect 2.x & fs2 2.x
17+
"com.softwaremill.sttp.client4" %% "fs2ce2" % "4.0.9" // for cats-effect 2.x & fs2 2.x
1818
```
1919

2020
Obtain a cats-effect `Resource` which creates the backend, and closes the thread pool after the resource is no longer used:
@@ -78,9 +78,9 @@ To use, add the following dependency to your project:
7878

7979
```scala
8080
// for cats-effect 3.x & fs2 3.x
81-
"com.softwaremill.sttp.client4" %% "armeria-backend-fs2" % "4.0.8"
81+
"com.softwaremill.sttp.client4" %% "armeria-backend-fs2" % "4.0.9"
8282
// or for cats-effect 2.x & fs2 2.x
83-
"com.softwaremill.sttp.client4" %% "armeria-backend-fs2-ce2" % "4.0.8"
83+
"com.softwaremill.sttp.client4" %% "armeria-backend-fs2-ce2" % "4.0.9"
8484
```
8585

8686
create client:

generated-docs/out/backends/future.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Class Supported stream type
2121
To use, you don't need any extra dependencies, `core` is enough:
2222

2323
```
24-
"com.softwaremill.sttp.client4" %% "core" % "4.0.8"
24+
"com.softwaremill.sttp.client4" %% "core" % "4.0.9"
2525
```
2626

2727
You'll need the following imports:
@@ -59,7 +59,7 @@ Host header override is supported in environments running Java 12 onwards, but i
5959
To use, add the following dependency to your project:
6060

6161
```scala
62-
"com.softwaremill.sttp.client4" %% "okhttp-backend" % "4.0.8"
62+
"com.softwaremill.sttp.client4" %% "okhttp-backend" % "4.0.9"
6363
```
6464

6565
and some imports:
@@ -91,7 +91,7 @@ This backend depends on [OkHttp](http://square.github.io/okhttp/) and fully supp
9191
To use, add the following dependency to your project:
9292

9393
```
94-
"com.softwaremill.sttp.client4" %% "armeria-backend" % "4.0.8"
94+
"com.softwaremill.sttp.client4" %% "armeria-backend" % "4.0.9"
9595
```
9696

9797
add imports:

generated-docs/out/backends/http4s.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This backend is based on [http4s](https://http4s.org) (client) and is **asynchro
44

55
```scala
66
// for cats-effect 3.x & http4s 1.0.0-Mx
7-
"com.softwaremill.sttp.client4" %% "http4s-backend" % "4.0.8"
7+
"com.softwaremill.sttp.client4" %% "http4s-backend" % "4.0.9"
88
// or for cats-effect 2.x & http4s 0.21.x
9-
"com.softwaremill.sttp.client4" %% "http4s-ce2-backend" % "4.0.8"
9+
"com.softwaremill.sttp.client4" %% "http4s-ce2-backend" % "4.0.9"
1010
```
1111

1212
The backend can be created in a couple of ways, e.g.:

generated-docs/out/backends/javascript/fetch.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A JavaScript backend with web socket support. Implemented using the [Fetch API](
77
This is the default backend, available in the main jar for JS. To use, add the following dependency to your project:
88

99
```
10-
"com.softwaremill.sttp.client4" %%% "core" % "4.0.8"
10+
"com.softwaremill.sttp.client4" %%% "core" % "4.0.9"
1111
```
1212

1313
And create the backend instance:
@@ -26,7 +26,7 @@ Note that `Fetch` does not pass cookies by default. If your request needs cookie
2626
To use, add the following dependency to your project:
2727

2828
```
29-
"com.softwaremill.sttp.client4" %%% "monix" % "4.0.8"
29+
"com.softwaremill.sttp.client4" %%% "monix" % "4.0.9"
3030
```
3131

3232
And create the backend instance:
@@ -40,7 +40,7 @@ val backend = FetchMonixBackend()
4040
To use, add the following dependency to your project:
4141

4242
```
43-
"com.softwaremill.sttp.client4" %%% "zio" % "4.0.8"
43+
"com.softwaremill.sttp.client4" %%% "zio" % "4.0.9"
4444
```
4545

4646
And create the backend instance:
@@ -55,13 +55,13 @@ Any effect implementing the cats-effect `Concurrent` typeclass can be used. To u
5555
your project:
5656

5757
```
58-
"com.softwaremill.sttp.client4" %%% "cats" % "4.0.8"
58+
"com.softwaremill.sttp.client4" %%% "cats" % "4.0.9"
5959
```
6060

6161
If you are on Cats Effect 2 (CE2) you will need to add the CE2 specific dependency instead:
6262

6363
```
64-
"com.softwaremill.sttp.client4" %%% "catsce2" % "4.0.8"
64+
"com.softwaremill.sttp.client4" %%% "catsce2" % "4.0.9"
6565
```
6666

6767
And create the backend instance:
@@ -129,7 +129,7 @@ Streaming support is provided via `FetchMonixBackend`. Note that streaming suppo
129129
To use, add the following dependency to your project:
130130

131131
```
132-
"com.softwaremill.sttp.client4" %%% "monix" % "4.0.8"
132+
"com.softwaremill.sttp.client4" %%% "monix" % "4.0.9"
133133
```
134134

135135
An example of streaming a response:

generated-docs/out/backends/monix.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Creation of the backend can be done in two basic ways:
1212
Firstly, add the following dependency to your project:
1313

1414
```
15-
"com.softwaremill.sttp.client4" %% "monix" % "4.0.8"
15+
"com.softwaremill.sttp.client4" %% "monix" % "4.0.9"
1616
```
1717

1818
and create the backend using:
@@ -49,7 +49,7 @@ Host header override is supported in environments running Java 12 onwards, but i
4949
To use, add the following dependency to your project:
5050

5151
```scala
52-
"com.softwaremill.sttp.client4" %% "okhttp-backend-monix" % "4.0.8"
52+
"com.softwaremill.sttp.client4" %% "okhttp-backend-monix" % "4.0.9"
5353
```
5454

5555
Create the backend using:
@@ -75,7 +75,7 @@ This backend depends on [OkHttp](http://square.github.io/okhttp/) and fully supp
7575
To use, add the following dependency to your project:
7676

7777
```
78-
"com.softwaremill.sttp.client4" %% "armeria-backend-monix" % "4.0.8"
78+
"com.softwaremill.sttp.client4" %% "armeria-backend-monix" % "4.0.9"
7979
```
8080

8181
add imports:

generated-docs/out/backends/native/curl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A Scala Native (0.5.x) backend implemented using [Curl](https://github.com/curl/
55
To use, add the following dependency to your project:
66

77
```
8-
"com.softwaremill.sttp.client4" %%% "core" % "4.0.8"
8+
"com.softwaremill.sttp.client4" %%% "core" % "4.0.9"
99
```
1010

1111
and initialize one of the backends:
@@ -28,7 +28,7 @@ Try the following example:
2828
// hello.scala
2929

3030
//> using platform native
31-
//> using dep com.softwaremill.sttp.client4::core_native0.5:4.0.8
31+
//> using dep com.softwaremill.sttp.client4::core_native0.5:4.0.9
3232

3333
import sttp.client4.*
3434
import sttp.client4.curl.CurlBackend

0 commit comments

Comments
 (0)