Hi, Philippe,

On Thu, Jan 22, 2015 at 6:28 PM, Philippe Milot <pmi...@turbulent.ca> wrote:

> So I'm following the documentation on the new Akka-Http experimental
> modules, and I'm trying to get a basic Hello World using the Routing DSL.
>
> I've defined my route as follows:
>
>   val route: Route = {
>     complete(HttpResponse(entity = "Hello, world!"))
>   }
>
> I can bind and accept HTTP connections:
>
>     serverBinding.connections.foreach { connection =>
>       println("Accepted new connection from " + connection.remoteAddress)
>       // How do I "run" my route from here??
>     }
>
> I feel pretty dumb because I can't find anywhere in the documentation
> explaining how to plug the two together.
>

We are filling the holes in the docs slowly (but surely) so things are
still missing. You can look though at this little test server to get a feel
how to plug things together:
https://github.com/akka/akka/blob/release-2.3-dev/akka-http-tests/src/test/scala/akka/http/server/TestServer.scala

-Endre


> I tried scraping the API docs to find some class or method that does it,
> but all I found was a call to Route.handlerFlow(route) which requires
> some RoutingSetup implicit variable that is very difficult to instantiate.
> I couldn't find any Typesafe Activator template that shows how to do this
> either.
>
> I feel pretty dumb because I'm probably missing something really obvious.
> Please help!
>
>  - Phili
>
> --
> >>>>>>>>>> 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.
>

-- 
>>>>>>>>>>      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