Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 811 Bytes

finagle.md

File metadata and controls

21 lines (14 loc) · 811 Bytes

Twitter future (Finagle) backend

To use, add the following dependency to your project:

"com.softwaremill.sttp.client" %% "finagle-backend" % "2.1.4"

Next you'll need to add an implicit value:

import sttp.client.finagle.FinagleBackend
implicit val sttpBackend = 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 timeout
  • the backend does not support non-blocking streaming or websockets.