0
有誰知道在Android如何使用Okhttpclient創建一個Http刪除或使用Params的方法?如何使用Okhttpclient創建一個Http刪除或將參數與方法? android okhttpclient
使用Java,這是我曾嘗試:
CookieJarImpl cookieJar = new CookieJarImpl(new PersistentCookieStore(context));
okHttpClient = new OkHttpClient.Builder()
.cookieJar(cookieJar)
.addInterceptor(new LoggerInterceptor("TAG"))
.connectTimeout(10000L, TimeUnit.MILLISECONDS)
.readTimeout(10000L, TimeUnit.MILLISECONDS) //其他配置
.build();