Hi,
in the Java API there are currently two ways to deal with Futures. You can
use `RequestContext.completeWith` to transform a `FutureRouteResult`
into a `RouteResult`. Or, if you use the reflective `handleWith` directive
you can point it to a method that returns a `FutureRouteResult` instead
Have you looked into the examples inside the Spec Martynas linked to?
It's as easy as using the FutureDirectives as seen here:
https://github.com/akka/akka/blob/4b603ad018b1b909bb331b26ab7ec5464d86cd50/akka-http-tests/src/test/scala/akka/http/server/directives/FutureDirectivesSpec.scala#L26
On
Hi Peter,
We exactly want this, we want to hand it off this to an actor and handle
the response asynchronously. What did you do about this problem?
On Thursday, January 8, 2015 at 4:37:58 PM UTC+5:30, Peter wrote:
Hello,
I'm playing arround with the Java-API of the new akka-http server and I
Hi,
did you try onComplete or onSuccess directives?
https://github.com/akka/akka/blob/4b603ad018b1b909bb331b26ab7ec5464d86cd50/akka-http-tests/src/test/scala/akka/http/server/directives/FutureDirectivesSpec.scala
On Mon, Jan 12, 2015 at 7:40 PM, Asaf Shakarzy asaf...@gmail.com wrote:
+1!
+1! ping? anyone?
On Thursday, January 8, 2015 at 1:07:58 PM UTC+2, Peter wrote:
Hello,
I'm playing arround with the Java-API of the new akka-http server and I
would like to reply to a request with the result of an asynchronous actor
(i.e. some kind of DB-query).
I would have expected