Hi

I need to exactly the same I must get the response on http call into my 
flow.
I see that you think this tickets can solve your problem is it true ?

Thanks

On Tuesday, August 4, 2015 at 6:45:07 PM UTC+3, john....@gmail.com wrote:
>
> i think I need to wait for https://github.com/akka/akka/issues/15089
>
> Am Donnerstag, 30. Juli 2015 08:18:18 UTC+2 schrieb john....@gmail.com:
>>
>> // this is part of a BidiFlow
>>
>> FlowShape<Tuple2<Try<HttpResponse>, RequestResult>,
>>       Tuple2<ByteString, Object>>
>>       bottom =
>>       b.graph(Flow.<Tuple2<Try<HttpResponse>, Object>>empty().
>>             mapAsync(4, pair ->
>>                         getEntityBytes(pair._1().get(), pair._2(), 
>> materializer)
>>             ).map((pair) -> new Tuple2<>(pair._1(), pair._2())));
>>
>>
>>
>> static Future<Tuple2<ByteString, RequestResult>>
>>    getEntityBytes( final HttpResponse response,
>>                    final Object requestResult,
>>                    final ActorMaterializer materializer) {
>>
>>    return response.entity().getDataBytes().runFold(
>>          new Tuple2(ByteString.empty(),requestResult),
>>          (aggr, next) -> new Tuple2(aggr._1().concat(next),aggr._2()), 
>> materializer);
>> }
>>
>>
>>
>>
>>
>> What looks a little funny to me is that I need to pass a materializer to 
>> the inner flow?
>>
>> I am a little unsure because the docs Modularity, Composition and 
>> Hierarchy state:
>> "It is rarely useful to embed a closed graph shape in a larger graph"
>>
>>

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to