akka/akka-http

Make it possible to expose HTTP requests as Sink

Open

#139 opened on Sep 8, 2016

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Scala (598 forks)batch import
1 - triagedhelp wantednice-to-have (low-prio)

Repository metrics

Stars
 (1,311 stars)
PR merge metrics
 (Avg merge 1d 10h) (2 merged PRs in 30d)

Description

Issue by drewhk Thursday Dec 17, 2015 at 12:08 GMT Originally opened as https://github.com/akka/akka/issues/19218


What is needed is roughly:

val uploadSink = Flow[ByteString].lift.map(<put Source in HttpRequest>).via(http).to(Sink.ignore)

Where lift is the magic that makes Source[T] to Source[Source[T]].

Contributor guide