Re: [akka-user] Streams - custom HTTP POST Sink?

2016-08-11 Thread Endre Varga
On Thu, Aug 11, 2016 at 12:32 AM, Mike Bryant wrote: > Thanks Endre - that's perfect. The prefixAndTail with zero prefix was the > missing ingredient I needed to transform the whole source within a separate > flow (maybe there's a case for adding that as another specific >

Re: [akka-user] Streams - custom HTTP POST Sink?

2016-08-11 Thread Mike Bryant
Thanks Endre - that's perfect. The prefixAndTail with zero prefix was the missing ingredient I needed to transform the whole source within a separate flow (maybe there's a case for adding that as another specific "mapSource"-type method?). Best, ~Mike On Wednesday, 10 August 2016 22:20:58

Re: [akka-user] Streams - custom HTTP POST Sink?

2016-08-10 Thread Endre Varga
> Using Akka HTTP and streams I can take a Source[ByteString, _] and using > it as the body entity for a POST request to some HTTP endpoint, yielding > some response. I'd like to abstract this into an Akka streams *Sink* I > can run with said Source and materialise to, for example, the HTTP status

[akka-user] Streams - custom HTTP POST Sink?

2016-08-10 Thread Mike Bryant
Using Akka HTTP and streams I can take a Source[ByteString, _] and using it as the body entity for a POST request to some HTTP endpoint, yielding some response. I'd like to abstract this into an Akka streams *Sink* I can run with said Source and materialise to, for example, the HTTP status code