It seems that the http client request API is for classic actors only:
val responseFuture: Future[HttpResponse] = Http().singleRequest(HttpRequest(uri = "http://akka.io"))
responseFuture
.onComplete {
case Success(res) => println(res)
case Failure(_) => sys.error("something wrong")
}
I have a akka typed actor and not sure how to make external http requests to my API.
When I added the above inside of my typed actor, I got this error:
could not find implicit value for parameter system: akka.actor.ClassicActorSystemProvider
What options do I have?