Skip to content

Commit e2a42a3

Browse files
committed
Release 4.0.0-RC2
1 parent 95216f4 commit e2a42a3

24 files changed

+88
-89
lines changed

README.md

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

1919
```scala
20-
//> using dep com.softwaremill.sttp.client4::core:4.0.0-RC1
20+
//> using dep com.softwaremill.sttp.client4::core:4.0.0-RC2
2121

2222
import sttp.client4.quick.*
2323

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

3838
```scala
39-
//> using dep com.softwaremill.sttp.client4::core:4.0.0-RC1
39+
//> using dep com.softwaremill.sttp.client4::core:4.0.0-RC2
4040

4141
import sttp.client4.*
4242

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

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

74-
scaladoc is available at [https://www.javadoc.io](https://www.javadoc.io/doc/com.softwaremill.sttp.client4/core_2.12/4.0.0-RC1)
74+
scaladoc is available at [https://www.javadoc.io](https://www.javadoc.io/doc/com.softwaremill.sttp.client4/core_2.12/4.0.0-RC2)
7575

7676
## Quickstart with scala-cli
7777

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

8181
```
82-
//> using dep "com.softwaremill.sttp.client4::core:4.0.0-RC1"
82+
//> using dep "com.softwaremill.sttp.client4::core:4.0.0-RC2"
8383
import sttp.client4.quick.*
8484
quickRequest.get(uri"http://httpbin.org/ip").send()
8585
```
@@ -91,7 +91,7 @@ The `quick` package import brings in the sttp API and a pre-configured, global s
9191
Similarly, using [Ammonite](http://ammonite.io):
9292

9393
```scala
94-
import $ivy.`com.softwaremill.sttp.client4::core:4.0.0-RC1`
94+
import $ivy.`com.softwaremill.sttp.client4::core:4.0.0-RC2`
9595
import sttp.client4.quick.*
9696
quickRequest.get(uri"http://httpbin.org/ip").send()
9797
```
@@ -101,7 +101,7 @@ quickRequest.get(uri"http://httpbin.org/ip").send()
101101
Add the following dependency:
102102

103103
```scala
104-
"com.softwaremill.sttp.client4" %% "core" % "4.0.0-RC1"
104+
"com.softwaremill.sttp.client4" %% "core" % "4.0.0-RC2"
105105
```
106106

107107
Then, import:
@@ -159,7 +159,7 @@ The documentation is typechecked using [mdoc](https://scalameta.org/mdoc/). The
159159

160160
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.
161161

162-
That is, in sbt run: `set ThisBuild/version := "4.0.0-RC1"`, before running `mdoc` in `docs`.
162+
That is, in sbt run: `set ThisBuild/version := "4.0.0-RC2"`, before running `mdoc` in `docs`.
163163

164164
### Testing the Scala.JS backend
165165

generated-docs/out/backends/akka.md

+1-1
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.0-RC1"
6+
"com.softwaremill.sttp.client4" %% "akka-http-backend" % "4.0.0-RC2"
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

+3-3
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.0-RC1"
17+
"com.softwaremill.sttp.client4" %% "cats" % "4.0.0-RC2"
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.0-RC1"
86+
"com.softwaremill.sttp.client4" %% "armeria-backend-cats" % "4.0.0-RC2"
8787
// or for cats-effect 2.x
88-
"com.softwaremill.sttp.client4" %% "armeria-backend-cats-ce2" % "4.0.0-RC1"
88+
"com.softwaremill.sttp.client4" %% "armeria-backend-cats-ce2" % "4.0.0-RC2"
8989
```
9090

9191
create client:

generated-docs/out/backends/finagle.md

+1-1
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.0-RC1"
6+
"com.softwaremill.sttp.client4" %% "finagle-backend" % "4.0.0-RC2"
77
```
88

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

generated-docs/out/backends/fs2.md

+4-4
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.0-RC1" // for cats-effect 3.x & fs2 3.x
15+
"com.softwaremill.sttp.client4" %% "fs2" % "4.0.0-RC2" // for cats-effect 3.x & fs2 3.x
1616
// or
17-
"com.softwaremill.sttp.client4" %% "fs2ce2" % "4.0.0-RC1" // for cats-effect 2.x & fs2 2.x
17+
"com.softwaremill.sttp.client4" %% "fs2ce2" % "4.0.0-RC2" // 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.0-RC1"
81+
"com.softwaremill.sttp.client4" %% "armeria-backend-fs2" % "4.0.0-RC2"
8282
// or for cats-effect 2.x & fs2 2.x
83-
"com.softwaremill.sttp.client4" %% "armeria-backend-fs2-ce2" % "4.0.0-RC1"
83+
"com.softwaremill.sttp.client4" %% "armeria-backend-fs2-ce2" % "4.0.0-RC2"
8484
```
8585

8686
create client:

generated-docs/out/backends/future.md

+3-3
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.0-RC1"
24+
"com.softwaremill.sttp.client4" %% "core" % "4.0.0-RC2"
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.0-RC1"
62+
"com.softwaremill.sttp.client4" %% "okhttp-backend" % "4.0.0-RC2"
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.0-RC1"
94+
"com.softwaremill.sttp.client4" %% "armeria-backend" % "4.0.0-RC2"
9595
```
9696

9797
add imports:

generated-docs/out/backends/http4s.md

+2-2
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.0-RC1"
7+
"com.softwaremill.sttp.client4" %% "http4s-backend" % "4.0.0-RC2"
88
// or for cats-effect 2.x & http4s 0.21.x
9-
"com.softwaremill.sttp.client4" %% "http4s-ce2-backend" % "4.0.0-RC1"
9+
"com.softwaremill.sttp.client4" %% "http4s-ce2-backend" % "4.0.0-RC2"
1010
```
1111

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

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

+6-6
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.0-RC1"
10+
"com.softwaremill.sttp.client4" %%% "core" % "4.0.0-RC2"
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.0-RC1"
29+
"com.softwaremill.sttp.client4" %%% "monix" % "4.0.0-RC2"
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.0-RC1"
43+
"com.softwaremill.sttp.client4" %%% "zio" % "4.0.0-RC2"
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.0-RC1"
58+
"com.softwaremill.sttp.client4" %%% "cats" % "4.0.0-RC2"
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.0-RC1"
64+
"com.softwaremill.sttp.client4" %%% "catsce2" % "4.0.0-RC2"
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.0-RC1"
132+
"com.softwaremill.sttp.client4" %%% "monix" % "4.0.0-RC2"
133133
```
134134

135135
An example of streaming a response:

generated-docs/out/backends/monix.md

+3-3
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.0-RC1"
15+
"com.softwaremill.sttp.client4" %% "monix" % "4.0.0-RC2"
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.0-RC1"
52+
"com.softwaremill.sttp.client4" %% "okhttp-backend-monix" % "4.0.0-RC2"
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.0-RC1"
78+
"com.softwaremill.sttp.client4" %% "armeria-backend-monix" % "4.0.0-RC2"
7979
```
8080

8181
add imports:

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

+2-2
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.0-RC1"
8+
"com.softwaremill.sttp.client4" %%% "core" % "4.0.0-RC2"
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.0-RC1
31+
//> using dep com.softwaremill.sttp.client4::core_native0.5:4.0.0-RC2
3232

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

generated-docs/out/backends/pekko.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This backend is based on [pekko-http](https://pekko.apache.org/docs/pekko-http/current/). To use, add the following dependency to your project:
44

55
```
6-
"com.softwaremill.sttp.client4" %% "pekko-http-backend" % "4.0.0-RC1"
6+
"com.softwaremill.sttp.client4" %% "pekko-http-backend" % "4.0.0-RC2"
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 Pekko.

generated-docs/out/backends/scalaz.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The [Scalaz](https://github.com/scalaz/scalaz) backend is **asynchronous**. Send
88
To use, add the following dependency to your project:
99

1010
```
11-
"com.softwaremill.sttp.client4" %% "armeria-backend-scalaz" % "4.0.0-RC1"
11+
"com.softwaremill.sttp.client4" %% "armeria-backend-scalaz" % "4.0.0-RC2"
1212
```
1313

1414
add imports:

generated-docs/out/backends/synchronous.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ There are several synchronous backend implementations. Sending a request using t
77
The default **synchronous** backend. To use, you don't need any extra dependencies, `core` is enough:
88

99
```
10-
"com.softwaremill.sttp.client4" %% "core" % "4.0.0-RC1"
10+
"com.softwaremill.sttp.client4" %% "core" % "4.0.0-RC2"
1111
```
1212

1313
Create the backend using:
@@ -40,7 +40,7 @@ Host header override is supported in environments running Java 12 onwards, but i
4040
To use, you don't need any extra dependencies, `core` is enough:
4141

4242
```
43-
"com.softwaremill.sttp.client4" %% "core" % "4.0.0-RC1"
43+
"com.softwaremill.sttp.client4" %% "core" % "4.0.0-RC2"
4444
```
4545

4646
Create the backend using:
@@ -62,7 +62,7 @@ This backend supports host header override, but it has to be enabled by system p
6262
To use, add the following dependency to your project:
6363

6464
```
65-
"com.softwaremill.sttp.client4" %% "okhttp-backend" % "4.0.0-RC1"
65+
"com.softwaremill.sttp.client4" %% "okhttp-backend" % "4.0.0-RC2"
6666
```
6767

6868
Create the backend using:
@@ -99,7 +99,7 @@ Both HttpClient and OkHttp backends support regular [websockets](../other/websoc
9999

100100
```
101101
// sbt dependency
102-
"com.softwaremill.sttp.client4" %% "ox" % "4.0.0-RC1",
102+
"com.softwaremill.sttp.client4" %% "ox" % "4.0.0-RC2",
103103
```
104104

105105
```scala

generated-docs/out/backends/wrappers/cache.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
To use the caching backend, add the following dependency:
44

55
```
6-
"com.softwaremill.sttp.client4" %% "caching-backend" % "4.0.0-RC1"
6+
"com.softwaremill.sttp.client4" %% "caching-backend" % "4.0.0-RC2"
77
```
88

99
The backend caches responses to eligible requests, and returns them from the cache if a repeated request is made. A prerequisite for a request to be considered for caching is that its response-as description is "cache-friendly"; this excludes non-blocking streaming responses, file-based responses and WebSockets.

generated-docs/out/backends/wrappers/custom.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ A number of example backend wrappers can be found in [examples](../../examples.m
4545
Implementing a new backend is made easy as the tests are published in the `core` jar file under the `tests` classifier. Simply add the follow dependencies to your `build.sbt`:
4646

4747
```
48-
"com.softwaremill.sttp.client4" %% "core" % "4.0.0-RC1" % Test classifier "tests"
48+
"com.softwaremill.sttp.client4" %% "core" % "4.0.0-RC2" % Test classifier "tests"
4949
```
5050

5151
Implement your backend and extend the `HttpTest` class:
@@ -72,9 +72,9 @@ import sttp.client4.impl.cats.implicits.*
7272
from the cats integration module. The module should be available on the classpath after adding following dependency:
7373

7474
```scala
75-
"com.softwaremill.sttp.client4" %% "cats" % "4.0.0-RC1" // for cats-effect 3.x
75+
"com.softwaremill.sttp.client4" %% "cats" % "4.0.0-RC2" // for cats-effect 3.x
7676
// or
77-
"com.softwaremill.sttp.client4" %% "catsce2" % "4.0.0-RC1" // for cats-effect 2.x
77+
"com.softwaremill.sttp.client4" %% "catsce2" % "4.0.0-RC2" // for cats-effect 2.x
7878
```
7979

8080
The object contains implicits to convert a cats `MonadError` into the sttp `MonadError`,

generated-docs/out/backends/wrappers/logging.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Log levels can be configured when creating the `LoggingBackend`, or specified in
2828
To use the [slf4j](http://www.slf4j.org) logging backend wrapper, add the following dependency to your project:
2929

3030
```
31-
"com.softwaremill.sttp.client4" %% "slf4j-backend" % "4.0.0-RC1"
31+
"com.softwaremill.sttp.client4" %% "slf4j-backend" % "4.0.0-RC2"
3232
```
3333

3434
There are three backend wrappers available, which log request & response information using a slf4j `Logger`. To see the logs, you'll need to use an slf4j-compatible logger implementation, e.g. [logback](http://logback.qos.ch), or use a binding, e.g. [log4j-slf4j](https://logging.apache.org/log4j/2.x/log4j-slf4j-impl.html).
@@ -53,5 +53,5 @@ To create a customized logging backend, see the section on [custom backends](cus
5353
To use the [scribe](https://github.com/outr/scribe) logging backend wrapper, add the following dependency to your project:
5454

5555
```
56-
"com.softwaremill.sttp.client4" %% "scribe-backend" % "4.0.0-RC1"
56+
"com.softwaremill.sttp.client4" %% "scribe-backend" % "4.0.0-RC2"
5757
```

0 commit comments

Comments
 (0)