glide
glide copied to clipboard
How to set http proxy dynamically
I have a requirement. If the image loading fails while the app is running, I need to set up a proxy to access the image. For normal access, there is no need to set up a proxy. In order to modify the image loading timeout, I have customized the AppGlideModule. If I Define the http proxy in AppGlideModule, so that all proxies will be used, which is not as expected. Is there a way to dynamically set the http proxy during operation?
Glide Version: 4.16.0
Integration libraries: okhttp4
Device/Android Version: nexus6