import fr.hmil.roshttp.HttpRequest
import monix.execution.Scheduler.Implicits.global
import scala.util.{Failure, Success}
import fr.hmil.roshttp.response.SimpleHttpResponse
// Runs consistently on the jvm, in node.js and in the browser!
val request = HttpRequest("https://schema.org/WebPage")
request.send().onComplete({
case res:Success[SimpleHttpResponse] => println(res.get.body)
case e: Failure[SimpleHttpResponse] => println("Huston, we got a problem!")
})
In the README example code under basic usage:
Houston is misspelled as "Huston."