Re: [akka-user] [Akka Http 1.0-M4] startHandlingWith / starting server with routes

2015-02-27 Thread Peter Neyens
That works, thank you very much Roland. Not as nice as the convenience method indeed :-) Op vrijdag 27 februari 2015 21:33:40 UTC+1 schreef rkuhn: Hi Peter, the documentation is obviously still lacking, and the Activator template you are citing has not yet been ported to 1.0-M4. But worse

Re: [akka-user] Stop TestActorRefs that fail?

2015-02-27 Thread Sam Halliday
Aah, yes, good spot. Let's also add some type safety: /** * `TestActorRef`s are restarted by default on exceptions, but this * just stops them. * * https://groups.google.com/forum/#!topic/akka-user/0Ene7WaDyng */ trait StoppingTestActorRefs { this: TestKit = private class

Re: [akka-user] The mapAsync and the mapAsyncUnordered an unexpected behavior

2015-02-27 Thread Boris Lopukhov
Thanks for response! I created issue https://github.com/akka/akka/issues/16959 пятница, 27 февраля 2015 г., 13:54:35 UTC+4 пользователь drewhk написал: Hi Boris, On Fri, Feb 27, 2015 at 10:41 AM, Boris Lopukhov 89b...@gmail.com javascript: wrote: I have a simple actor publisher: class

[akka-user] ANNOUNCE: Akka Streams HTTP 1.0 MILESTONE 4

2015-02-27 Thread Roland Kuhn
Dear hakkers, we are pleased to announce the availability of the fourth milestone of Akka Streams HTTP. The biggest directly visible feature of this release is a completely new and fluent Java DSL for writing FlowGraphs: final RunnableFlowFutureListString result = FlowGraph.factory()

Re: [akka-user] Re: [akka-http] Routing dsl and streams integration

2015-02-27 Thread Giovanni Alberto Caporaletti
Hi Martynas, what if I wanted to marshal a source (the head) of a type for which a ToResponseMarshaller is available? Do I need to materialize it like this? implicit def streamMarshaller[T](implicit mat: FlowMaterializer, marshaller: ToResponseMarshaller[T]): ToResponseMarshaller[Source[T]]

Re: [akka-user] akka-http custom directives

2015-02-27 Thread Roland Kuhn
Thanks for sharing, Giovanni and Tim! 27 feb 2015 kl. 16:07 skrev Tim Pigden tim.pig...@optrak.com: I'll contribute a code example of my own then. Not particularly elegant but it might help someone else. In essence I create a directive with the path, then map and filter it to insert the

[akka-user] Re: akka system shutdown in sub actor

2015-02-27 Thread George Lu
Ok, thanks Jim. Can I ask another question, if I shutdown akka in one of the actor (getContext().system().shutdown()), what is the behavior? Thanks! George On Friday, 27 February 2015 13:32:51 UTC+8, Jim Hazen wrote: Seems logical. From an actor within a running system you ask the system

[akka-user] Re: akka-http custom directives

2015-02-27 Thread Giovanni Alberto Caporaletti
Hi, I just started to write one to check basic authentication with an external service, because the current implementation forces you to know the cleartext password to compare it with the provided one. This is a basic test I made for the time being. I was wondering if there is a better way of

Re: [akka-user] The mapAsync and the mapAsyncUnordered an unexpected behavior

2015-02-27 Thread Endre Varga
Hi Boris, On Fri, Feb 27, 2015 at 10:41 AM, Boris Lopukhov 89bo...@gmail.com wrote: I have a simple actor publisher: class TestActor extends ActorPublisher[Int] { println(RUN) def receive = { case Request(elements) = while (totalDemand 0 isActive) { onNext(1) }

[akka-user] akka-http custom directives

2015-02-27 Thread Tim Pigden
Hi - is there any documentation (even in draft form) about custom directives for akka-http? Or has anyone any code examples? Thanks Tim -- Read the docs: http://akka.io/docs/ Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html Search the archives: