// private static volatile HttpUtils instance;
// public static Handler handler = new Handler();
// private static OkHttpClient client;
//
// private Interceptor getAppInterceptor() {
// //添加拦截器
// Interceptor interceptor = new Interceptor() {
// @Override
// public Response intercept(Chain chain) throws IOException {
// Request request = chain.request();
// Log.e("++++++++++", "拦截前");
// //---------请求之前------------
// Response response = chain.proceed(request);
// Log.e("++++++++++", "拦截后");
// //---------请求之后------------
// return response;
// }
// };
// return interceptor;
// }
//
// private HttpUtils() {
// File fil
OkHttps优化
最新推荐文章于 2023-06-14 15:22:37 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)