Hi,

I'm testing the akka http routing DSL
(
http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0-M4/scala/http/routing.html
)

I am quite surprised that I need an ExecutionContext to use an implicit
marshaller (ToResponseMarshallable).
It makes the code quite complicated for a very simple use case like that
one:

import akka.http.server.Directives._
import akka.http.server.Route
import scala.concurrent.ExecutionContext

object Routes {
  def index(implicit ec: ExecutionContext): Route =
    get {
      path("") {
        complete("hello")
      }
    }
}

What's your opinion?

Cheers, Yann

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