This is the release candidate for sttp-client4, a major release of the Scala HTTP client you always wanted!
If no major issues are found, which would impact the public API, a final release of sttp-client 4.0.0 will follow in about a month.
Links
- Documentation, examples
- Migrating from v3 to v4
- Community forum - ask migration questions here
- Issues - report bugs, migration problems here
New features
- simple use-cases, simple types: most of the time you'll work with
Request[T]
,SyncBackend
orBackend[F]
, reducing the number of type parameters involved - much better error reporting, due to the above simplifications
- better integration with IDE's auto-complete
- clearer types for streaming & WebSocket requests
...OrFailed
response descriptions- client-side, configurable compression support
- deeper metrics & logging integration
- improved OpenTelemetry, Prometheus, Logging backends
- reworked documentation with a library of examples
- request body progress callbacks for
HttpClient
-based backends onBodyReceived
callback support- more predictable
BackendStub
behavior - a number of quality-of-life improvements, extending scaladocs and making the API more consistent
What’s Changed
- Update client4:caching-backend, ... to 4.0.0-M26 (#2437) @softwaremill-ci
Dependency updates
- Update zio-json to 0.7.15 (#2439) @softwaremill-ci
- Update zio, zio-streams to 2.1.15 (#2438) @softwaremill-ci