Isn't the following case typical for dealing with Http().superPool(...) flows?
The superPool flow lets me nicely attach context to the HttResponse.
Now I do not want to materialize the getDataBytes Source right away but pass
it to flatMapConcat.
Like in the following pseudo java code:
1) Flow<Pair<HttpRequest, Object>, Pair<Try<HttpResponse>, Object>, BoxedUnit>
flow = httpClient.<Object>request();
2) Flow<Object, ByteString, BoxedUnit> byteStringFlow =
responseFlow.flatMapConcat(pair -> {
3) // How to also pass pair.second() back?
4) return pair.first().get().entity().getDataBytes();
5) });
In the above code I would like to also pass the context in pair.second()
downstream. I guess this is not possible with the simple flows api?
Does akka streams support a getDataBytes() with context flow?
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.