This is the stable release of sttp-client4, a major release of the Scala HTTP client you always wanted!
Links
- Documentation, examples
- Migrating from v3 to v4
- Community forum - ask migration questions here
- Issues - report bugs, missing examples, 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
- OpenTelemetry metrics+tracing example (#2519) @adamw
- Add mapResponseWithMetadata helper method to requests (#2520) @adamw
Dependency updates
- Update client4:caching-backend, ... to 4.0.0-RC3 (#2511) @softwaremill-ci
- Update opentelemetry-backend to 4.0.0-RC4 (#2521) @softwaremill-ci
- Update client4:caching-backend, ... to 4.0.0-RC4 (#2516) @softwaremill-ci
- Update cats-effect, cats-effect-kernel, ... to 3.6.1 (#2522) @softwaremill-ci
- Update zio, zio-streams to 2.1.17 (#2518) @softwaremill-ci
- Update opentelemetry-api, ... to 1.49.0 (#2517) @softwaremill-ci