RxVolley基于 Volley 的網(wǎng)絡請求庫
RxVolley 是一個基于 Volley 的網(wǎng)絡請求庫,同時支持 RxJava 。
可以選擇使用 OKHttp 或 OKHttp3 替代默認的 HttpUrlConnection 做網(wǎng)絡請求;可以選擇使用圖片加載功能(復用的網(wǎng)絡請求將有效減少 apk 體積);
移除了原 Volley 的 HttpClient 相關(guān) API ,可在 API23 環(huán)境編譯;
內(nèi)置了 RxBus 的實現(xiàn),可有效替換掉 EventBus 等相關(guān)庫。
如果您正在使用 Gradle 構(gòu)建,只需將以下行添加到 build.gradle 文件的依賴關(guān)系部分:
compile 'com.kymjs.rxvolley:rxvolley:1.1.4'
// If use okhttp function
compile 'com.kymjs.rxvolley:okhttp:1.1.4'
//or
compile 'com.kymjs.rxvolley:okhttp3:1.1.4'// If use image-loader function
compile 'com.kymjs.rxvolley:bitmapcore:1.1.4'
評論
圖片
表情
