Adrian,
the only way that you can run custom logic upon reception of a new network packet is by setting the
`spray.can.client.parsing.incoming-auto-chunking-threshold-size` setting and using spray-can directly.
This way you can write an actor that uses the spray-can host-level API (for example) to download the file and receive incoming packets right away as `MessageChunk` instances.
As of now spray-client doesn't support chunked responses, which means that your spray-client-level code will only see the HttpResponse instance when the response has been received in its entirety, which makes the implementation of a progress meter impossible.
Cheers,
Mathias
---
mat...@spray.io
http://spray.io
> --
> You received this message because you are subscribed to the Google Groups "spray-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
spray-user+...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.