This example showcases how to use sttp included in Scala Toolkit with Scala Native and scala-cli.
See sttp.scala
for a simple raw example, or sttp-ce3.scala
for an eaxmple using Cats Effect 3.
Read the blog article for full information about how co set up and run the examples.
Build with
scala-cli --power package --native sttp.scala -o sttp-curl -f
or
scala-cli --power package --native sttp-ce3.scala -o sttp-ce3 -f
for the CE3 version.