--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Just need to access routes that makes requests to the other routes, this doesn’t work, due to my absolute url:
val myRoute = {
path("/foo") {
val url = "http://127.0.0.1:8080/bar"
val response = Http().singleRequest(HttpRequest(uri = url))
onComplete(response) {
case Success(r) => complete(r)
case Failure(_) =>
}
} ~
path ("/bar") {
complete("Hello World")
}
}
in my test case:
Get("/foo") ~> route ~> check {...}
Sorry in my prior email I forgot to render markdown. Hope this clarifies a bit.