Fast-android-networking: Add Auth headers to imageView

Created on 16 Feb 2018  路  5Comments  路  Source: amitshekhariitbhu/Fast-Android-Networking

Hello Amit, thanks for this awesome library. I was thinking of new feature or it maybe already exists, its that in imageView to set auth headers in java or xml because some servers allow to fetch images only for valid authentication.

Most helpful comment

Use getAsOkHttpResponseAndJSONObject for the above.

All 5 comments

Currently it does not support this. One way u can do is with adding interceptor in okhttp and initialize the library with that okhttp.

I will try to add this support in new release

Ok I will try doing that. I have another 1 question, How do I get response code in onResponse() interface method for getAsJSONObject() method.

Use getAsOkHttpResponseAndJSONObject for the above.

Thanks am getting reponse code using okHttpResponseListeners

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahaneef29 picture ahaneef29  路  7Comments

GulajavaMinistudio picture GulajavaMinistudio  路  3Comments

Ali-Khazaee picture Ali-Khazaee  路  5Comments

alitong picture alitong  路  8Comments

rezasadeghi93 picture rezasadeghi93  路  8Comments