glide icon indicating copy to clipboard operation
glide copied to clipboard

How to set http proxy dynamically

Open tristanyi opened this issue 1 year ago • 0 comments

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

tristanyi avatar Oct 23 '23 06:10 tristanyi