Retrofit简单封装

我们知道在比较流行的网络框架里,有okhttp,retrofit,volley,而okhttp只支持 get 和post,而retrofit支持 get,put,post,header,等等 在开发中我对retrofit简单封装了一下。 1.导入依赖: compile 'com.squareup.retrofit2:retrofit:2.4.0' compile 'com.squareup.ret
相关文章
相关标签/搜索