I need to execute JavaScript in HTML responses.
I am using sttp version 1.5.12.
According to the documentation I just need to include implicit val sttpBackend = FetchBackend()
but it's not working.
See documentation at : https://sttp.readthedocs.io/en/latest/backends/javascript/fetch.html
Already included the dependency for Maven.
<!-- https://mvnrepository.com/artifact/com.softwaremill.sttp/core -->
<dependency>
<groupId>com.softwaremill.sttp</groupId>
<artifactId>core_2.12</artifactId>
<version>1.5.12</version>
</dependency>
Example:
import com.softwaremill.sttp._
implicit val sttpBackend = FetchBackend()
I expected to use this like the other supported backends.
Eclipse reports not found : value FetchBackend
Any help is appreciated.