Re: [akka-user] Entity streaming

2016-11-21 Thread Richard Rodseth
Good to know! I will have case classes anyway. On Mon, Nov 21, 2016 at 9:55 AM, Konrad Malawski < konrad.malaw...@typesafe.com> wrote: > You have sadly bumped into an weird edge case here, this API was designed > mostly for streaming case classes in mind, > as streaming primitives may be a nice h

Re: [akka-user] Entity streaming

2016-11-21 Thread Konrad Malawski
You have sadly bumped into an weird edge case here, this API was designed mostly for streaming case classes in mind, as streaming primitives may be a nice hello world but rarely is the thing one wants I think... To workaround the limitation you can provide an explicit marshaller that exposes the S

Re: [akka-user] Entity streaming

2016-11-21 Thread Konrad Malawski
Thanks for reporting Richard - seems there's a bug somewhere, I'm looking into it. Seems it doesn't compose nicely with existing predefined primitive marshallers (like String here), if it was wrapped in a type (say Thing("One") then it works, which is what all our tests were doing). Please track t

[akka-user] Entity streaming

2016-11-18 Thread Richard Rodseth
Trying this out for the first time. I get a 200 OK but empty body. val eventsRoute = path("events") { get { //val results: List[String] = List("One", "Two", "Three") val results: Source[String, NotUsed] = Source(List("One", "Two", "Three")) complete(results)