Skip to content

Commit

Permalink
Update client4:circe, client4:core, ... to 4.0.0-M22 (#2384)
Browse files Browse the repository at this point in the history
Co-authored-by: scala-steward <scala-steward>
  • Loading branch information
softwaremill-ci authored Jan 3, 2025
1 parent adda8af commit 5ce9907
Show file tree
Hide file tree
Showing 19 changed files with 26 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// {cat=JSON; effects=Monix; backend=HttpClient}: Receive & parse JSON using circe

//> using scala 2.13
//> using dep com.softwaremill.sttp.client4::monix:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::circe:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::monix:4.0.0-M22
//> using dep com.softwaremill.sttp.client4::circe:4.0.0-M22
//> using dep io.circe::circe-generic:0.14.10

package sttp.client4.examples
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// {cat=Hello, World!; effects=Monix; backend=HttpClient}: Post JSON data

//> using scala 2.13
//> using dep com.softwaremill.sttp.client4::monix:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::circe:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::monix:4.0.0-M22
//> using dep com.softwaremill.sttp.client4::circe:4.0.0-M22
//> using dep io.circe::circe-generic:0.14.10

package sttp.client4.examples
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// {cat=WebSocket; effects=Monix; backend=HttpClient}: Connect to & interact with a WebSocket

//> using scala 2.13
//> using dep com.softwaremill.sttp.client4::monix:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::monix:4.0.0-M22

package sttp.client4.examples

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// {cat=JSON; effects=ZIO; backend=HttpClient}: Receive & parse JSON using circe

//> using dep com.softwaremill.sttp.client4::circe:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::zio:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::circe:4.0.0-M22
//> using dep com.softwaremill.sttp.client4::zio:4.0.0-M22
//> using dep io.circe::circe-generic:0.14.10

package sttp.client4.examples
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// {cat=Other; effects=Direct; backend=HttpClient}: Handle the body by both parsing it to JSON and returning the raw string

//> using dep com.softwaremill.sttp.client4::circe:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::circe:4.0.0-M22
//> using dep io.circe::circe-generic:0.14.10

package sttp.client4.examples
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// {cat=Logging; effects=Direct; backend=HttpClient}: Add a logging backend wrapper, which uses slf4j

//> using dep com.softwaremill.sttp.client4::circe:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::slf4j-backend:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::circe:4.0.0-M22
//> using dep com.softwaremill.sttp.client4::slf4j-backend:4.0.0-M22
//> using dep io.circe::circe-generic:0.14.10
//> using dep ch.qos.logback:logback-classic:1.5.15

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// {cat=Hello, World!; effects=Direct; backend=HttpClient}: Post form data

//> using dep com.softwaremill.sttp.client4::core:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::core:4.0.0-M22

package sttp.client4.examples

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// {cat=Resilience; effects=ZIO; backend=HttpClient}: Retry sending a request

//> using dep com.softwaremill.sttp.client4::zio:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::zio:4.0.0-M22

package sttp.client4.examples

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// {cat=Streaming; effects=cats-effect; backend=HttpClient}: Stream request & response bodies using fs2

//> using dep com.softwaremill.sttp.client4::fs2:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::fs2:4.0.0-M22

package sttp.client4.examples

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// {cat=Streaming; effects=ZIO; backend=HttpClient}: Stream request & response bodies using ZIO-Streams

//> using dep com.softwaremill.sttp.client4::zio:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::zio:4.0.0-M22

package sttp.client4.examples

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// {cat=Testing}: Create a backend stub which simulates interactions using multiple query parameters

//> using dep com.softwaremill.sttp.client4::core:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::core:4.0.0-M22

package sttp.client4.examples

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// {cat=WebSocket; effects=Future; backend=Pekko}: Connect to & interact with a WebSocket

//> using dep com.softwaremill.sttp.client4::pekko-http-backend:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::pekko-http-backend:4.0.0-M22
//> using dep org.apache.pekko::pekko-stream:1.1.2

package sttp.client4.examples
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// {cat=WebSocket; effects=cats-effect; backend=HttpClient}: Connect to & interact with a WebSocket, using fs2 streaming

//> using dep com.softwaremill.sttp.client4::fs2:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::fs2:4.0.0-M22

package sttp.client4.examples

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// {cat=WebSocket; effects=Direct; backend=HttpClient}: Connect to & interact with a WebSocket

//> using dep com.softwaremill.sttp.client4::core:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::core:4.0.0-M22

package sttp.client4.examples

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// {cat=Testing; effects=cats-effect; backend=HttpClient}: Create a backend stub which simulates interactions with a WebSocket

//> using dep com.softwaremill.sttp.client4::fs2:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::fs2:4.0.0-M22

package sttp.client4.examples

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// {cat=WebSocket; effects=ZIO; backend=HttpClient}: Connect to & interact with a WebSocket

//> using dep com.softwaremill.sttp.client4::zio:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::zio:4.0.0-M22

package sttp.client4.examples

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// {cat=JSON; effects=Future; backend=Pekko}: Receive & parse JSON using json4s

//> using dep com.softwaremill.sttp.client4::json4s:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::pekko-http-backend:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::json4s:4.0.0-M22
//> using dep com.softwaremill.sttp.client4::pekko-http-backend:4.0.0-M22
//> using dep org.json4s::json4s-native:4.0.7
//> using dep org.apache.pekko::pekko-stream:1.1.2

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// {cat=WebSocket; effects=Direct; backend=HttpClient}: Connect to & interact with a WebSocket, using Ox channels for streaming

//> using dep com.softwaremill.sttp.client4::ox:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::ox:4.0.0-M22

package sttp.client4.examples

Expand Down
6 changes: 3 additions & 3 deletions examples/src/main/scala/sttp/client4/examples/x.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//> using dep com.softwaremill.sttp.client4::core:4.0.0-M20
//> using dep com.softwaremill.sttp.client4::core:4.0.0-M22

import sttp.client4.*

Expand All @@ -14,7 +14,7 @@ import sttp.client4.*
val response = request.send(backend)

// response.header(...): Option[String]
println(response.header("Content-Length"))
println(response.header("Content-Length"))

// response.body: by default read into an Either[String, String] to indicate failure or success
// response.body: by default read into an Either[String, String] to indicate failure or success
println(response.body)

0 comments on commit 5ce9907

Please sign in to comment.