sttp: the Scala HTTP client that you always wanted!
summary
Sttp provides a Scala HTTP client with immutable request templates and a unified API that decouples request description from execution; it works with multiple backends (Java HttpURLConnection, Akka HTTP, AsyncHttpClient, Monix) to offer both blocking and async execution and backend-specific streaming types. URI string interpolation auto-encodes and expands optional/query/path params, request types prevent sending partial requests, response handling includes safe Either results, and a stub backend enables deterministic tests — the live demo shows these features compiling and running.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 4:24HTTP request
- 10:42POST request
- 21:30Streaming types
- 26:45Partial requests
- 28:40Full requests
- 29:45RequestT
- 32:40synchronous backend
- 33:37handling errors
- 37:00response
- 39:36integrations
- 41:27what is sttp
- 42:32does it support WebSockets








