diff --git a/README.md b/README.md index 6cae9b5da7..d3e29039b1 100755 --- a/README.md +++ b/README.md @@ -45,14 +45,14 @@ sttp (v2) documentation is available at [sttp.softwaremill.com](http://sttp.soft sttp (v1) documentation is available at [sttp.softwaremill.com/en/v1](https://sttp.softwaremill.com/en/v1). -scaladoc is available at [https://www.javadoc.io](https://www.javadoc.io/doc/com.softwaremill.sttp.client/core_2.12/2.2.7) +scaladoc is available at [https://www.javadoc.io](https://www.javadoc.io/doc/com.softwaremill.sttp.client/core_2.12/2.2.8) ## Quickstart with Ammonite If you are an [Ammonite](http://ammonite.io) user, you can quickly start experimenting with sttp by copy-pasting the following: ```scala -import $ivy.`com.softwaremill.sttp.client::core:2.2.7` +import $ivy.`com.softwaremill.sttp.client::core:2.2.8` import sttp.client.quick._ quickRequest.get(uri"http://httpbin.org/ip").send() ``` @@ -64,7 +64,7 @@ This brings in the sttp API and an implicit, synchronous backend. Add the following dependency: ```scala -"com.softwaremill.sttp.client" %% "core" % "2.2.7" +"com.softwaremill.sttp.client" %% "core" % "2.2.8" ``` Then, import: diff --git a/generated-docs/out/backends/akka.md b/generated-docs/out/backends/akka.md index 4350c634db..2adb5c2487 100644 --- a/generated-docs/out/backends/akka.md +++ b/generated-docs/out/backends/akka.md @@ -3,7 +3,7 @@ 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: ``` -"com.softwaremill.sttp.client" %% "akka-http-backend" % "2.2.7" +"com.softwaremill.sttp.client" %% "akka-http-backend" % "2.2.8" ``` A fully **asynchronous** backend. Sending a request returns a response wrapped in a `Future`. There are also [other `Future`-based backends](future.md), which don't depend on Akka. diff --git a/generated-docs/out/backends/catseffect.md b/generated-docs/out/backends/catseffect.md index 22be72fdb6..953e3eb91f 100644 --- a/generated-docs/out/backends/catseffect.md +++ b/generated-docs/out/backends/catseffect.md @@ -5,7 +5,7 @@ The [Cats Effect](https://github.com/typelevel/cats-effect) backend is **asynchr To use, add the following dependency to your project: ```scala -"com.softwaremill.sttp.client" %% "async-http-client-backend-cats" % "2.2.7" +"com.softwaremill.sttp.client" %% "async-http-client-backend-cats" % "2.2.8" ``` You'll need the following imports and implicits to create the backend: ```scala diff --git a/generated-docs/out/backends/finagle.md b/generated-docs/out/backends/finagle.md index bad0f3eb0b..62e54b22d0 100644 --- a/generated-docs/out/backends/finagle.md +++ b/generated-docs/out/backends/finagle.md @@ -3,7 +3,7 @@ To use, add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %% "finagle-backend" % "2.2.7" +"com.softwaremill.sttp.client" %% "finagle-backend" % "2.2.8" ``` Next you'll need to add an implicit value: diff --git a/generated-docs/out/backends/fs2.md b/generated-docs/out/backends/fs2.md index 40daeffd0f..ad5d04064c 100644 --- a/generated-docs/out/backends/fs2.md +++ b/generated-docs/out/backends/fs2.md @@ -7,7 +7,7 @@ The [fs2](https://github.com/functional-streams-for-scala/fs2) backend is **asyn To use, add the following dependency to your project: ```scala -"com.softwaremill.sttp.client" %% "async-http-client-backend-fs2" % "2.2.7" +"com.softwaremill.sttp.client" %% "async-http-client-backend-fs2" % "2.2.8" ``` And some imports: ```scala @@ -64,7 +64,7 @@ implicit val sttpBackend = AsyncHttpClientFs2Backend.usingClient[IO](asyncHttpCl To use, add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %% "httpclient-backend-fs2" % "2.2.7" +"com.softwaremill.sttp.client" %% "httpclient-backend-fs2" % "2.2.8" ``` And some imports: ```scala diff --git a/generated-docs/out/backends/future.md b/generated-docs/out/backends/future.md index 71009c1a29..706a080160 100644 --- a/generated-docs/out/backends/future.md +++ b/generated-docs/out/backends/future.md @@ -20,7 +20,7 @@ Class Supported stream type To use, add the following dependency to your project: ```scala -"com.softwaremill.sttp.client" %% "async-http-client-backend-future" % "2.2.7" +"com.softwaremill.sttp.client" %% "async-http-client-backend-future" % "2.2.8" ``` And some imports: ```scala @@ -61,7 +61,7 @@ implicit val sttpBackend = AsyncHttpClientFutureBackend.usingClient(asyncHttpCli To use, add the following dependency to your project: ```scala -"com.softwaremill.sttp.client" %% "okhttp-backend" % "2.2.7" +"com.softwaremill.sttp.client" %% "okhttp-backend" % "2.2.8" ``` and some imports: ```scala @@ -88,7 +88,7 @@ This backend depends on [OkHttp](http://square.github.io/okhttp/) and fully supp To use, add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %% "httpclient-backend" % "2.2.7" +"com.softwaremill.sttp.client" %% "httpclient-backend" % "2.2.8" ``` and some imports: ```scala diff --git a/generated-docs/out/backends/http4s.md b/generated-docs/out/backends/http4s.md index 99febffdd6..58fa6261e1 100644 --- a/generated-docs/out/backends/http4s.md +++ b/generated-docs/out/backends/http4s.md @@ -3,7 +3,7 @@ This backend is based on [http4s](https://http4s.org) (blaze client) and is **asynchronous**. To use, add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %% "http4s-backend" % "2.2.7" +"com.softwaremill.sttp.client" %% "http4s-backend" % "2.2.8" ``` Add some imports as well: diff --git a/generated-docs/out/backends/javascript/fetch.md b/generated-docs/out/backends/javascript/fetch.md index 80b5a8418a..3e51d690e3 100644 --- a/generated-docs/out/backends/javascript/fetch.md +++ b/generated-docs/out/backends/javascript/fetch.md @@ -5,7 +5,7 @@ A JavaScript backend implemented using the [Fetch API](https://developer.mozilla This is the default backend, available in the main jar for JS. To use, add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %%% "core" % "2.2.7" +"com.softwaremill.sttp.client" %%% "core" % "2.2.8" ``` And add an implicit value: @@ -48,7 +48,7 @@ Streaming support is provided via `FetchMonixBackend`. Note that streaming suppo To use, add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %%% "monix" % "2.2.7" +"com.softwaremill.sttp.client" %%% "monix" % "2.2.8" ``` An example of streaming a response: diff --git a/generated-docs/out/backends/monix.md b/generated-docs/out/backends/monix.md index 78e7350b65..f904f7687b 100644 --- a/generated-docs/out/backends/monix.md +++ b/generated-docs/out/backends/monix.md @@ -7,7 +7,7 @@ There are several backend implementations which are `monix.eval.Task`-based. The To use, add the following dependency to your project: ```scala -"com.softwaremill.sttp.client" %% "async-http-client-backend-monix" % "2.2.7" +"com.softwaremill.sttp.client" %% "async-http-client-backend-monix" % "2.2.8" ``` This backend depends on [async-http-client](https://github.com/AsyncHttpClient/async-http-client), uses [Netty](http://netty.io) behind the scenes and supports effect cancellation. @@ -50,7 +50,7 @@ implicit val sttpBackend = AsyncHttpClientMonixBackend.usingClient(asyncHttpClie To use, add the following dependency to your project: ```scala -"com.softwaremill.sttp.client" %% "okhttp-backend-monix" % "2.2.7" +"com.softwaremill.sttp.client" %% "okhttp-backend-monix" % "2.2.8" ``` Create the backend using: @@ -76,7 +76,7 @@ This backend depends on [OkHttp](http://square.github.io/okhttp/) and fully supp To use, add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %% "httpclient-backend-monix" % "2.2.7" +"com.softwaremill.sttp.client" %% "httpclient-backend-monix" % "2.2.8" ``` Create the backend using: diff --git a/generated-docs/out/backends/native/curl.md b/generated-docs/out/backends/native/curl.md index ccb1ff576a..553f769c55 100644 --- a/generated-docs/out/backends/native/curl.md +++ b/generated-docs/out/backends/native/curl.md @@ -5,7 +5,7 @@ A Scala Native backend implemented using [Curl](https://github.com/curl/curl/blo To use, add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %%% "core" % "2.2.7" +"com.softwaremill.sttp.client" %%% "core" % "2.2.8" ``` and initialize one of the backends: diff --git a/generated-docs/out/backends/scalaz.md b/generated-docs/out/backends/scalaz.md index 209703591a..fbe959fbc8 100644 --- a/generated-docs/out/backends/scalaz.md +++ b/generated-docs/out/backends/scalaz.md @@ -5,7 +5,7 @@ The [Scalaz](https://github.com/scalaz/scalaz) backend is **asynchronous**. Send To use, add the following dependency to your project: ```scala -"com.softwaremill.sttp.client" %% "async-http-client-backend-scalaz" % "2.2.7" +"com.softwaremill.sttp.client" %% "async-http-client-backend-scalaz" % "2.2.8" ``` This backend depends on [async-http-client](https://github.com/AsyncHttpClient/async-http-client) and uses [Netty](http://netty.io) behind the scenes. diff --git a/generated-docs/out/backends/synchronous.md b/generated-docs/out/backends/synchronous.md index 24e1146d2f..3eee0e060e 100644 --- a/generated-docs/out/backends/synchronous.md +++ b/generated-docs/out/backends/synchronous.md @@ -19,7 +19,7 @@ This backend works with all Scala versions. A Dotty build is available as well. To use, add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %% "okhttp-backend" % "2.2.7" +"com.softwaremill.sttp.client" %% "okhttp-backend" % "2.2.8" ``` Create the backend using: @@ -45,7 +45,7 @@ This backend depends on [OkHttp](http://square.github.io/okhttp/) and fully supp To use, add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %% "httpclient-backend" % "2.2.7" +"com.softwaremill.sttp.client" %% "httpclient-backend" % "2.2.8" ``` Create the backend using: diff --git a/generated-docs/out/backends/wrappers/custom.md b/generated-docs/out/backends/wrappers/custom.md index 45803ff198..375cb1cd6f 100644 --- a/generated-docs/out/backends/wrappers/custom.md +++ b/generated-docs/out/backends/wrappers/custom.md @@ -313,7 +313,7 @@ object RateLimitingSttpBackend { 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`: ``` -"com.softwaremill.sttp.client" %% "core" % "2.2.7" % Test classifier "tests" +"com.softwaremill.sttp.client" %% "core" % "2.2.8" % Test classifier "tests" ``` Implement your backend and extend the `HttpTest` class: diff --git a/generated-docs/out/backends/wrappers/opentracing.md b/generated-docs/out/backends/wrappers/opentracing.md index a13d2401ba..8a0a182864 100644 --- a/generated-docs/out/backends/wrappers/opentracing.md +++ b/generated-docs/out/backends/wrappers/opentracing.md @@ -3,7 +3,7 @@ To use, add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %% "opentracing-backend" % "2.2.7" +"com.softwaremill.sttp.client" %% "opentracing-backend" % "2.2.8" ``` This backend depends on [opentracing](https://github.com/opentracing/opentracing-java), a standardized set of api for distributed tracing. diff --git a/generated-docs/out/backends/wrappers/prometheus.md b/generated-docs/out/backends/wrappers/prometheus.md index be8eea6188..e1bfd1a806 100644 --- a/generated-docs/out/backends/wrappers/prometheus.md +++ b/generated-docs/out/backends/wrappers/prometheus.md @@ -3,7 +3,7 @@ To use, add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %% "prometheus-backend" % "2.2.7" +"com.softwaremill.sttp.client" %% "prometheus-backend" % "2.2.8" ``` and some imports: ```scala diff --git a/generated-docs/out/backends/wrappers/slf4j.md b/generated-docs/out/backends/wrappers/slf4j.md index 87b0b4b52d..fbc951fd8a 100644 --- a/generated-docs/out/backends/wrappers/slf4j.md +++ b/generated-docs/out/backends/wrappers/slf4j.md @@ -5,7 +5,7 @@ There are three backend wrappers available, which log request & response informa To use the backend wrappers, add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %% "slf4j-backend" % "2.2.7" +"com.softwaremill.sttp.client" %% "slf4j-backend" % "2.2.8" ``` The following backend wrappers are available: diff --git a/generated-docs/out/backends/wrappers/zio-opentracing.md b/generated-docs/out/backends/wrappers/zio-opentracing.md index be720bdf8c..2ca82e4dcd 100644 --- a/generated-docs/out/backends/wrappers/zio-opentracing.md +++ b/generated-docs/out/backends/wrappers/zio-opentracing.md @@ -3,7 +3,7 @@ To use, add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %% "zio-telemetry-opentracing-backend" % "2.2.7" +"com.softwaremill.sttp.client" %% "zio-telemetry-opentracing-backend" % "2.2.8" ``` This backend depends on [zio-opentracing](https://github.com/zio/zio-telemetry). diff --git a/generated-docs/out/backends/zio.md b/generated-docs/out/backends/zio.md index 07945238a8..05cb9933d3 100644 --- a/generated-docs/out/backends/zio.md +++ b/generated-docs/out/backends/zio.md @@ -7,7 +7,7 @@ The [ZIO](https://github.com/zio/zio) backends are **asynchronous**. Sending a r To use, add the following dependency to your project: ```scala -"com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.2.7" +"com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.2.8" ``` This backend depends on [async-http-client](https://github.com/AsyncHttpClient/async-http-client), uses [Netty](http://netty.io) behind the scenes and supports effect cancellation. This backend works with all Scala versions. A Dotty build is available as well. @@ -53,7 +53,7 @@ implicit val backend = AsyncHttpClientZioBackend.usingClient(runtime, asyncHttpC To use, add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %% "httpclient-backend-zio" % "2.2.7" +"com.softwaremill.sttp.client" %% "httpclient-backend-zio" % "2.2.8" ``` Create the backend using: diff --git a/generated-docs/out/examples.md b/generated-docs/out/examples.md index 3160ed4ee2..c0b9c250a5 100644 --- a/generated-docs/out/examples.md +++ b/generated-docs/out/examples.md @@ -7,7 +7,7 @@ All of the examples are available [in the sources](https://github.com/softwaremi Required dependencies: ```scala -libraryDependencies ++= List("com.softwaremill.sttp.client" %% "core" % "2.2.7") +libraryDependencies ++= List("com.softwaremill.sttp.client" %% "core" % "2.2.8") ``` Example code: @@ -36,8 +36,8 @@ Required dependencies: ```scala libraryDependencies ++= List( - "com.softwaremill.sttp.client" %% "akka-http-backend" % "2.2.7", - "com.softwaremill.sttp.client" %% "json4s" % "2.2.7", + "com.softwaremill.sttp.client" %% "akka-http-backend" % "2.2.8", + "com.softwaremill.sttp.client" %% "json4s" % "2.2.8", "org.json4s" %% "json4s-native" % "3.6.0" ) ``` @@ -79,8 +79,8 @@ Required dependencies: ```scala libraryDependencies ++= List( - "com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.2.7", - "com.softwaremill.sttp.client" %% "circe" % "2.2.7", + "com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.2.8", + "com.softwaremill.sttp.client" %% "circe" % "2.2.8", "io.circe" %% "circe-generic" % "0.12.1" ) ``` @@ -126,8 +126,8 @@ Required dependencies: ```scala libraryDependencies ++= List( - "com.softwaremill.sttp.client" %% "async-http-client-backend-monix" % "2.2.7", - "com.softwaremill.sttp.client" %% "circe" % "2.2.7", + "com.softwaremill.sttp.client" %% "async-http-client-backend-monix" % "2.2.8", + "com.softwaremill.sttp.client" %% "circe" % "2.2.8", "io.circe" %% "circe-generic" % "0.12.1" ) ``` @@ -164,7 +164,7 @@ postTask.runSyncUnsafe() Required dependencies: ```scala -libraryDependencies ++= List("com.softwaremill.sttp.client" %% "core" % "2.2.7") +libraryDependencies ++= List("com.softwaremill.sttp.client" %% "core" % "2.2.8") ``` Example code: @@ -199,7 +199,7 @@ println( Required dependencies: ```scala -libraryDependencies ++= List("com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.2.7") +libraryDependencies ++= List("com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.2.8") ``` Example code: @@ -239,7 +239,7 @@ object WebsocketZio extends ZApp { Required dependencies: ```scala -libraryDependencies ++= List("com.softwaremill.sttp.client" %% "async-http-client-backend-monix" % "2.2.7") +libraryDependencies ++= List("com.softwaremill.sttp.client" %% "async-http-client-backend-monix" % "2.2.8") ``` Example code: @@ -279,7 +279,7 @@ object WebsocketMonix extends App { Required dependencies: ```scala -libraryDependencies ++= List("com.softwaremill.sttp.client" %% "async-http-client-backend-fs2" % "2.2.7") +libraryDependencies ++= List("com.softwaremill.sttp.client" %% "async-http-client-backend-fs2" % "2.2.8") ``` Example code: @@ -332,7 +332,7 @@ effect.unsafeRunSync() Required dependencies: ```scala -libraryDependencies ++= List("com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.2.7") +libraryDependencies ++= List("com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.2.8") ``` Example code: diff --git a/generated-docs/out/json.md b/generated-docs/out/json.md index f6887d5ff9..1c4a39b5e4 100644 --- a/generated-docs/out/json.md +++ b/generated-docs/out/json.md @@ -15,7 +15,7 @@ case class ResponsePayload(data: String) JSON encoding of bodies and decoding of responses can be handled using [Circe](https://circe.github.io/circe/) by the `circe` module. To use add the following dependency to your project: ```scala -"com.softwaremill.sttp.client" %% "circe" % "2.2.7" +"com.softwaremill.sttp.client" %% "circe" % "2.2.8" ``` This module adds a body serialized, so that json payloads can be sent as request bodies. To send a payload of type `T` as json, a `io.circe.Encoder[T]` implicit value must be available in scope. @@ -47,7 +47,7 @@ Arbitrary JSON structures can be traversed by parsing the result as `io.circe.Js To encode and decode json using json4s, add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %% "json4s" % "2.2.7" +"com.softwaremill.sttp.client" %% "json4s" % "2.2.8" "org.json4s" %% "json4s-native" % "3.6.0" ``` @@ -81,7 +81,7 @@ val response: Identity[Response[Either[ResponseError[Exception], ResponsePayload To encode and decode JSON using [spray-json](https://github.com/spray/spray-json), add the following dependency to your project: ``` -"com.softwaremill.sttp.client" %% "spray-json" % "2.2.7" +"com.softwaremill.sttp.client" %% "spray-json" % "2.2.8" ``` Using this module it is possible to set request bodies and read response bodies as your custom types, using the implicitly available instances of `spray.json.JsonWriter` / `spray.json.JsonReader` or `spray.json.JsonFormat`. @@ -113,7 +113,7 @@ val response: Identity[Response[Either[ResponseError[Exception], ResponsePayload To encode and decode JSON using [play-json](https://www.playframework.com), add the following dependency to your project: ```scala -"com.softwaremill.sttp.client" %% "play-json" % "2.2.7" +"com.softwaremill.sttp.client" %% "play-json" % "2.2.8" ``` To use, add an import: `import sttp.client.playJson._`. diff --git a/generated-docs/out/openapi.md b/generated-docs/out/openapi.md index 1356173c4f..154b9413f5 100644 --- a/generated-docs/out/openapi.md +++ b/generated-docs/out/openapi.md @@ -36,8 +36,8 @@ lazy val petstoreApi: Project = project openApiGeneratorName := "scala-sttp", openApiOutputDir := baseDirectory.value.name, libraryDependencies ++= Seq( - "com.softwaremill.sttp.client" %% "core" % "2.2.7", - "com.softwaremill.sttp.client" %% "json4s" % "2.2.7", + "com.softwaremill.sttp.client" %% "core" % "2.2.8", + "com.softwaremill.sttp.client" %% "json4s" % "2.2.8", "org.json4s" %% "json4s-jackson" % "3.6.8" ) ) @@ -87,8 +87,8 @@ lazy val petstoreApi: Project = project openApiOutputDir := baseDirectory.value.name, openApiIgnoreFileOverride := s"${baseDirectory.in(ThisBuild).value.getPath}/openapi-ignore-file", libraryDependencies ++= Seq( - "com.softwaremill.sttp.client" %% "core" % "2.2.7", - "com.softwaremill.sttp.client" %% "json4s" % "2.2.7", + "com.softwaremill.sttp.client" %% "core" % "2.2.8", + "com.softwaremill.sttp.client" %% "json4s" % "2.2.8", "org.json4s" %% "json4s-jackson" % "3.6.8" ), (compile in Compile) := ((compile in Compile) dependsOn openApiGenerate).value, diff --git a/generated-docs/out/quickstart.md b/generated-docs/out/quickstart.md index 0dd8bc670a..5f30ac5e5f 100644 --- a/generated-docs/out/quickstart.md +++ b/generated-docs/out/quickstart.md @@ -9,7 +9,7 @@ To integrate with other parts of your application, you'll often need to use an a The basic dependency which provides the API and the default synchronous backend is: ```scala -"com.softwaremill.sttp.client" %% "core" % "2.2.7" +"com.softwaremill.sttp.client" %% "core" % "2.2.8" ``` `sttp client` is available for Scala 2.11, 2.12 and 2.13, and requires Java 8, as well as for Dotty (Scala 3) 0.23. @@ -21,7 +21,7 @@ The basic dependency which provides the API and the default synchronous backend If you are an [Ammonite](https://ammonite.io) user, you can quickly start experimenting with sttp by copy-pasting the following: ```scala -import $ivy.`com.softwaremill.sttp.client::core:2.2.7` +import $ivy.`com.softwaremill.sttp.client::core:2.2.8` import sttp.client.quick._ quickRequest.get(uri"http://httpbin.org/ip").send() ``` @@ -31,7 +31,7 @@ Importing the `quick` object has the same effect as importing `sttp.client._`, p If the default `HttpURLConnectionBackend` for some reason is insufficient, you can also use one based on OkHttp: ```scala -import $ivy.`com.softwaremill.sttp.client::okhttp-backend:2.2.7` +import $ivy.`com.softwaremill.sttp.client::okhttp-backend:2.2.8` import sttp.client.okhttp.quick._ quickRequest.get(uri"http://httpbin.org/ip").send() ``` diff --git a/version.sbt b/version.sbt index 345fe0254a..5c58c5229e 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -version in ThisBuild := "2.2.7" +version in ThisBuild := "2.2.8"