There seems to be some magical implicit conversion going on here, if I add 

  def flow: Flow[HttpRequest, HttpResponse, Unit] = route

to my service trait, I can get the Flow. Unfortunately I have absolutely no 
idea where this implicit is coming from because the akka-http routing DSL 
basically kills the presentation compiler (even worse than spray-routing 
did, which was pretty bad to begin with) so type / implicit information is 
rare to come by.

Best regards,
Sam

On Sunday, 12 July 2015 14:33:25 UTC+1, Sam Halliday wrote:
>
> Hi all,
>
> I'm trying to migrate from Spray to Akka-HTTP and I'm failing to be able 
> to compile this most basic of examples:
>
>   
> http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0-RC4/scala/http/routing-dsl/index.html
>
> The API for bindAndHandle must have changed because I have a `Route` but 
> it wants a `Flow[HttpRequest,HttpResponse,Any]`
>
> Is there some command that I can run to convert `Route` into the flow that 
> is required? (Or perhaps add a convenience on `Http` for this purpose).
>
>
> I'm looking at the release branch
>
>   
> https://github.com/akka/akka/tree/releasing-akka-stream-and-http-experimental-1.0-RC4
>
> and I can't find any examples of how to actually start a server using the 
> Scala variant of the API.
>
>
>
> Best regards,
> Sam
>

-- 
>>>>>>>>>>      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+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to