Twitter future (Finagle) backend
To use, add the following dependency to your project:
"com.softwaremill.sttp.client4" %% "finagle-backend" % "4.0.0-M11"
Next you’ll need to add an implicit value:
import sttp.client4.finagle.FinagleBackend
val backend = FinagleBackend()
This backend depends on finagle, and offers an asynchronous backend, which wraps results in Twitter’s Future
.
Please note that:
the backend does not support
SttpBackendOptions
, that is specifying proxy settings (proxies are not implemented in http4s, see this issue), as well as configuring the connect timeoutthe backend does not support non-blocking streaming or websockets.