okhttp3使用

1、引入包 在項目module下的build.gradle添加okhttp3依賴html compile 'com.squareup.okhttp3:okhttp:3.3.1' 2、基本使用 一、okhttp3 Get 方法 1.1 、okhttp3 同步 Get方法 /** * 同步Get方法 */ private void okHttp_synchronousGet() { new T
相關文章
相關標籤/搜索