Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions _overviews/toolkit/http-client-request-body.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ To send a POST request with a string body, you can chain `post` and `body` on a
import sttp.client4.quick._

val response = quickRequest
.post(uri"https://example.com/")
.post(uri"https://httpbin.org/post")
.body("Lorem ipsum")
.send()

Expand All @@ -31,7 +31,7 @@ println(response.code)
import sttp.client4.quick.*

val response = quickRequest
.post(uri"https://example.com/")
.post(uri"https://httpbin.org/post")
.body("Lorem ipsum")
.send()

Expand All @@ -51,7 +51,7 @@ The `body` method can also take a `Array[Byte]`, a `ByteBuffer` or an `InputStre
{% tab 'Scala 2 and 3' %}
```scala mdoc
val bytes: Array[Byte] = "john".getBytes
val request = quickRequest.post(uri"https://example.com/").body(bytes)
val request = quickRequest.post(uri"https://httpbin.org/post").body(bytes)
```
{% endtab %}
{% endtabs %}
Expand Down
2 changes: 2 additions & 0 deletions _overviews/toolkit/http-client-what-else.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ import scala.concurrent.{Await, Future}
import scala.concurrent.ExecutionContext.Implicits.global

import sttp.client4._
import sttp.client4.ws.async._
import sttp.ws.WebSocket

val asyncBackend = DefaultFutureBackend()
Expand Down Expand Up @@ -83,6 +84,7 @@ import scala.concurrent.{Await, Future}
import scala.concurrent.ExecutionContext.Implicits.global

import sttp.client4.*
import sttp.client4.ws.async.*
import sttp.ws.WebSocket

val asyncBackend = DefaultFutureBackend()
Expand Down
4 changes: 2 additions & 2 deletions scripts/run-mdoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ cs launch --scala-version 2.13.17 org.scalameta::mdoc:2.3.3 -- \
--classpath \
$(cs fetch --scala-version 2.13.17 -p \
com.chuusai::shapeless:2.3.10 \
org.scala-lang::toolkit:0.1.7 \
org.scala-lang::toolkit-test:0.1.7 \
org.scala-lang::toolkit:0.7.0 \
org.scala-lang::toolkit-test:0.7.0 \
) \
--scalac-options "-Xfatal-warnings -feature" \
--no-link-hygiene \
Expand Down