OkHttp3的使用

1、首先須要Gradle,GitHub的連接:http://square.github.io/okhttp/git compile 'com.squareup.okhttp3:okhttp:3.9.0' 2、測試get方法 /** * 測試get方法 */ @Test public void testGet() { //建立OKHttpClient對象 OkHttpClient o
相關文章
相關標籤/搜索