网络请求
cnflyhz
这个作者很懒,什么都没留下…
展开
-
Retrofit2.0 + Okhttp3.0获取接口原生数据
public interface ApiService { @Multipart @POST("/mm/xxx") Call<ResponseBody> uploadImage(@Part MultipartBody.Part file); @FormUrlEncoded @POST("/mm/xxx")原创 2018-03-22 14:59:51 · 834 阅读 · 0 评论 -
RxJava2 + Retrofit2 + Okhttp3
首先导入包: compile 'io.reactivex.rxjava2:rxjava:2.0.7' compile 'io.reactivex.rxjava2:rxandroid:2.0.1' compile 'com.squareup.retrofit2:retrofit:2.3.0' compile 'com.squareup.retrofit2:con...原创 2018-03-22 18:04:52 · 550 阅读 · 0 评论