diff --git a/README.md b/README.md index 8750ea4a8d..6cae9b5da7 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.6) +scaladoc is available at [https://www.javadoc.io](https://www.javadoc.io/doc/com.softwaremill.sttp.client/core_2.12/2.2.7) ## 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.6` +import $ivy.`com.softwaremill.sttp.client::core:2.2.7` 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.6" +"com.softwaremill.sttp.client" %% "core" % "2.2.7" ``` Then, import: diff --git a/generated-docs/out/backends/akka.md b/generated-docs/out/backends/akka.md index 0a560c6e44..4350c634db 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.6" +"com.softwaremill.sttp.client" %% "akka-http-backend" % "2.2.7" ``` 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 de763a02a3..22be72fdb6 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.6" +"com.softwaremill.sttp.client" %% "async-http-client-backend-cats" % "2.2.7" ``` 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 8c36341526..bad0f3eb0b 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.6" +"com.softwaremill.sttp.client" %% "finagle-backend" % "2.2.7" ``` 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 2e706cd088..40daeffd0f 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.6" +"com.softwaremill.sttp.client" %% "async-http-client-backend-fs2" % "2.2.7" ``` 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.6" +"com.softwaremill.sttp.client" %% "httpclient-backend-fs2" % "2.2.7" ``` And some imports: ```scala diff --git a/generated-docs/out/backends/future.md b/generated-docs/out/backends/future.md index 0bdeada911..71009c1a29 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.6" +"com.softwaremill.sttp.client" %% "async-http-client-backend-future" % "2.2.7" ``` 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.6" +"com.softwaremill.sttp.client" %% "okhttp-backend" % "2.2.7" ``` 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.6" +"com.softwaremill.sttp.client" %% "httpclient-backend" % "2.2.7" ``` and some imports: ```scala diff --git a/generated-docs/out/backends/http4s.md b/generated-docs/out/backends/http4s.md index ae7fd378be..99febffdd6 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.6" +"com.softwaremill.sttp.client" %% "http4s-backend" % "2.2.7" ``` Add some imports as well: diff --git a/generated-docs/out/backends/javascript/fetch.md b/generated-docs/out/backends/javascript/fetch.md index 82f36832f0..80b5a8418a 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.6" +"com.softwaremill.sttp.client" %%% "core" % "2.2.7" ``` 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.6" +"com.softwaremill.sttp.client" %%% "monix" % "2.2.7" ``` An example of streaming a response: diff --git a/generated-docs/out/backends/monix.md b/generated-docs/out/backends/monix.md index bcb7d5945b..78e7350b65 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.6" +"com.softwaremill.sttp.client" %% "async-http-client-backend-monix" % "2.2.7" ``` 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.6" +"com.softwaremill.sttp.client" %% "okhttp-backend-monix" % "2.2.7" ``` 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.6" +"com.softwaremill.sttp.client" %% "httpclient-backend-monix" % "2.2.7" ``` Create the backend using: diff --git a/generated-docs/out/backends/native/curl.md b/generated-docs/out/backends/native/curl.md index 7fa4efe9ee..ccb1ff576a 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.6" +"com.softwaremill.sttp.client" %%% "core" % "2.2.7" ``` and initialize one of the backends: diff --git a/generated-docs/out/backends/scalaz.md b/generated-docs/out/backends/scalaz.md index 697df7ed24..209703591a 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.6" +"com.softwaremill.sttp.client" %% "async-http-client-backend-scalaz" % "2.2.7" ``` 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 53662a6ae7..24e1146d2f 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.6" +"com.softwaremill.sttp.client" %% "okhttp-backend" % "2.2.7" ``` 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.6" +"com.softwaremill.sttp.client" %% "httpclient-backend" % "2.2.7" ``` Create the backend using: diff --git a/generated-docs/out/backends/wrappers/custom.md b/generated-docs/out/backends/wrappers/custom.md index d1798d6989..45803ff198 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.6" % Test classifier "tests" +"com.softwaremill.sttp.client" %% "core" % "2.2.7" % 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 68538dff41..a13d2401ba 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.6" +"com.softwaremill.sttp.client" %% "opentracing-backend" % "2.2.7" ``` 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 61572e6f48..be8eea6188 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.6" +"com.softwaremill.sttp.client" %% "prometheus-backend" % "2.2.7" ``` and some imports: ```scala diff --git a/generated-docs/out/backends/wrappers/slf4j.md b/generated-docs/out/backends/wrappers/slf4j.md index 6a3b84a459..87b0b4b52d 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.6" +"com.softwaremill.sttp.client" %% "slf4j-backend" % "2.2.7" ``` 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 458fb92e80..be720bdf8c 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.6" +"com.softwaremill.sttp.client" %% "zio-telemetry-opentracing-backend" % "2.2.7" ``` 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 e792581e03..b2a3471e6b 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.6" +"com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.2.7" ``` 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.6" +"com.softwaremill.sttp.client" %% "httpclient-backend-zio" % "2.2.7" ``` Create the backend using: diff --git a/generated-docs/out/examples.md b/generated-docs/out/examples.md index f91599a54e..3160ed4ee2 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.6") +libraryDependencies ++= List("com.softwaremill.sttp.client" %% "core" % "2.2.7") ``` Example code: @@ -36,8 +36,8 @@ Required dependencies: ```scala libraryDependencies ++= List( - "com.softwaremill.sttp.client" %% "akka-http-backend" % "2.2.6", - "com.softwaremill.sttp.client" %% "json4s" % "2.2.6", + "com.softwaremill.sttp.client" %% "akka-http-backend" % "2.2.7", + "com.softwaremill.sttp.client" %% "json4s" % "2.2.7", "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.6", - "com.softwaremill.sttp.client" %% "circe" % "2.2.6", + "com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.2.7", + "com.softwaremill.sttp.client" %% "circe" % "2.2.7", "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.6", - "com.softwaremill.sttp.client" %% "circe" % "2.2.6", + "com.softwaremill.sttp.client" %% "async-http-client-backend-monix" % "2.2.7", + "com.softwaremill.sttp.client" %% "circe" % "2.2.7", "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.6") +libraryDependencies ++= List("com.softwaremill.sttp.client" %% "core" % "2.2.7") ``` Example code: @@ -199,7 +199,7 @@ println( Required dependencies: ```scala -libraryDependencies ++= List("com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.2.6") +libraryDependencies ++= List("com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.2.7") ``` 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.6") +libraryDependencies ++= List("com.softwaremill.sttp.client" %% "async-http-client-backend-monix" % "2.2.7") ``` 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.6") +libraryDependencies ++= List("com.softwaremill.sttp.client" %% "async-http-client-backend-fs2" % "2.2.7") ``` Example code: @@ -332,7 +332,7 @@ effect.unsafeRunSync() Required dependencies: ```scala -libraryDependencies ++= List("com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.2.6") +libraryDependencies ++= List("com.softwaremill.sttp.client" %% "async-http-client-backend-zio" % "2.2.7") ``` Example code: diff --git a/generated-docs/out/json.md b/generated-docs/out/json.md index 000c803ae5..f6887d5ff9 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.6" +"com.softwaremill.sttp.client" %% "circe" % "2.2.7" ``` 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.6" +"com.softwaremill.sttp.client" %% "json4s" % "2.2.7" "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.6" +"com.softwaremill.sttp.client" %% "spray-json" % "2.2.7" ``` 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.6" +"com.softwaremill.sttp.client" %% "play-json" % "2.2.7" ``` To use, add an import: `import sttp.client.playJson._`. diff --git a/generated-docs/out/openapi.md b/generated-docs/out/openapi.md index d847bc9160..1356173c4f 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.6", - "com.softwaremill.sttp.client" %% "json4s" % "2.2.6", + "com.softwaremill.sttp.client" %% "core" % "2.2.7", + "com.softwaremill.sttp.client" %% "json4s" % "2.2.7", "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.6", - "com.softwaremill.sttp.client" %% "json4s" % "2.2.6", + "com.softwaremill.sttp.client" %% "core" % "2.2.7", + "com.softwaremill.sttp.client" %% "json4s" % "2.2.7", "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 93f85a67a1..0dd8bc670a 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.6" +"com.softwaremill.sttp.client" %% "core" % "2.2.7" ``` `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.6` +import $ivy.`com.softwaremill.sttp.client::core:2.2.7` 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.6` +import $ivy.`com.softwaremill.sttp.client::okhttp-backend:2.2.7` import sttp.client.okhttp.quick._ quickRequest.get(uri"http://httpbin.org/ip").send() ``` diff --git a/version.sbt b/version.sbt index 6205d89743..345fe0254a 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -version in ThisBuild := "2.2.6" +version in ThisBuild := "2.2.7"