JessYanCoding/RetrofitUrlManager
🔮 Let Retrofit support multiple baseUrl and can be change the baseUrl at runtime (以最简洁的 Api 让 Retrofit 同时支持多个 BaseUrl 以及动态改变 BaseUrl). observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3335
- days_rel: n/a
- days_push: 2328
- n_releases_24m: 0
Adoption not part of the score
2193 stars · 305 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A lightweight Java/Android library that extends Retrofit to support multiple BaseUrls and dynamic BaseUrl switching at runtime via OkHttp interceptors and a Domain-Name header. It integrates with a single line of configuration when building the OkHttpClient.
Use cases
- switch api base url at runtime in retrofit
- support multiple base urls in a single retrofit client
- change domain for specific retrofit endpoints dynamically
- override global base url per request in okhttp
- route different api services to different hosts in android app
When to choose
- you use Retrofit/OkHttp on Android and need per-request or runtime-switchable BaseUrls
- your app talks to several API domains or environments that change while running
When to avoid
- you don't use Retrofit or OkHttp
- you need a fully maintained library - the project has had no releases since 2020
- you can simply create multiple Retrofit instances instead
Facets
library · maturity maintenance
http-client middleware routing android-tools mobile-development apis developer-tools jvm retrofit okhttp baseurl runtime-configuration interceptor android
1 source
- readme: https://github.com/JessYanCoding/RetrofitUrlManager · fetched 2026-08-28 · 1f7941bb0f3a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| JessYanCoding/RetrofitUrlManager | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="JessYanCoding/RetrofitUrlManager")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem