Home

Awesome

sttp-model

Join the chat at https://gitter.im/softwaremill/sttp CI Maven Central

Open in Gitpod

sttp is a family of Scala HTTP-related projects, and currently includes:

Quickstart with sbt

Add the following dependency:

"com.softwaremill.sttp.model" %% "core" % "1.7.11"

sttp model is available for 2.12, 2.13, 3.0.0, Scala.JS and Scala Native.

Project content

Available model classes include:

Most classes contain both serialisation & parsing functionality, following these conventions:

Documentation

Javadocs

The docs for sttp client contain documentation for the model classes: overview, uri interpolator.

Contributing

If you have a question, or hit a problem, feel free to ask on our gitter channel!

Or, if you encounter a bug, something is unclear in the code or documentation, don’t hesitate and open an issue on GitHub.

Testing Scala.js

Scala.js tests require chromedriver. It is downloaded automatically by the test task. Make sure to run it before running tests in any other way, e.g. using testOnly.

Building & testing the scala-native version

By default, sttp-native will not be included in the aggregate build of the root project. To include it, define the STTP_NATIVE environmental variable before running sbt, e.g.:

STTP_NATIVE=1 sbt

You might need to install some additional libraries, see the scala native documentation site.

FAQ: Encoding & decoding URI components

See sttp client Uri docs

Commercial Support

We offer commercial support for sttp and related technologies, as well as development services. Contact us to learn more about our offer!

Copyright

Copyright (C) 2019-2021 SoftwareMill https://softwaremill.com.