有没有人知道Android如何使用Okhttpclient创建一个带有参数的Http删除或放置方法?
使用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();
Run Code Online (Sandbox Code Playgroud)