bumptech / bumptech/glide

How to set http proxy dynamically

Open
#5,315 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.