RetrofitUrlManager
RetrofitUrlManager copied to clipboard
🔮 Let Retrofit support multiple baseUrl and can be change the baseUrl at runtime (以最简洁的 Api 让 Retrofit 同时支持多个 BaseUrl 以及动态改变 BaseUrl).
在多线程中 mDomainNameHub 是安全的吗?在多线程请求密集时会不会有ConcurrentModificationException错误?
setGlobalDomain http://192.168.12.5:8055/CityInterface/ getGlobalDomain http://192.168.12.5:8055/CityInterface/ 经过 HttpUrl newUrl = mUrlParser.parseUrl(httpUrl, request.url()); 处理后 多了个CityInterface httpurl http://192.168.12.5:8055/CityInterface/ newurl http://192.168.12.5:8055/CityInterface/CityInterface/
 
How to use for the Post method
感谢开源;现在遇到一个问题,url切换成功了,但是每个url有不同的https证书,请问这个应该怎么切换。
用之前创建的Retrofit实例调用newBuilder()应该可以改变动态变url把
因为涉及baseurl不同,不同url的https证书也会不同 有啥好办法没有解决这个问题没有呢?