stephanenicolas / robospice

Repo of the Open Source Android library : RoboSpice. RoboSpice is a modular android library that makes writing asynchronous long running tasks easy. It is specialized in network requests, supports caching and offers REST requests out-of-the box using extension modules.
Apache License 2.0
2.95k stars 545 forks source link

BigBinaryRequest with customized headers/interceptors. #466

Open royalpinto opened 7 years ago

royalpinto commented 7 years ago

BigBinaryRequest doesn't allow customizing request headers (passing auth headers). Tried overriding loadDataFromNetwork request to create HttpURLConnection instance and setting headers but seems like loadDataFromNetwork is a final method at BinaryRequest and hence cannot be overridden.

Is there any way to use BigBinaryRequest with headers. I would like to get benefit of cache file too (Otherwise I could make use of normal request and write received byte array).

Thanks