Re: [akka-user] Re: Slowing down Akka HTTP responses

2017-03-29 Thread Alan Burlison
On 29/03/2017 16:38, Rafał Krzewski wrote: How about something like: complete { Source.single(yourResponse).via(Flow.delay(delayDuration)).to(Sink.head).run() } I'm shooting from the hip here, you may need to use the type of your response as parameter somewhere in the middle. The idea is that S

[akka-user] Re: Slowing down Akka HTTP responses

2017-03-29 Thread Rafał Krzewski
How about something like: complete { Source.single(yourResponse).via(Flow.delay(delayDuration)).to(Sink.head).run() } I'm shooting from the hip here, you may need to use the type of your response as parameter somewhere in the middle. The idea is that Sink.head[T] materializes into a Future[T]