Android okhttp3的使用详解

如今愈来愈多的项目中使用到了okhttp,今天我就来带你们学习学习!!!git 1.添加依赖github 这是3的依赖,和3以前的方法使用有区别; compile 'com.squareup.okhttp3:okhttp:3.0.1' compile 'com.squareup.okhttp3:logging-interceptor:3.0.1' 2.设置缓存web 工具类OkUtils: pub
相关文章
相关标签/搜索