| | |
| | | package com.xcong.excoin.modules.okxNewPrice.okxpi.config; |
| | | |
| | | |
| | | import com.xcong.excoin.modules.okxNewPrice.utils.FebsException; |
| | | import com.xcong.excoin.modules.okxNewPrice.okxpi.config.utils.FebsException; |
| | | import com.xcong.excoin.modules.okxNewPrice.okxpi.config.utils.JSONParser; |
| | | import com.xcong.excoin.modules.okxNewPrice.okxpi.config.utils.OkHttpUtils; |
| | | import okhttp3.Request; |
| | |
| | | } |
| | | |
| | | public static String handleResponse(Request request, boolean showLimitUsage) { |
| | | try (Response response = OkHttpUtils.okHttpClient.newCall(request).execute()) {//OkHttpUtils.builder().okHttpClient |
| | | try (Response response = OkHttpUtils.getClient().newCall(request).execute()) { |
| | | String responseAsString = getResponseBodyAsString(response.body()); |
| | | |
| | | if (response.code() >= HTTP_STATUS_CODE_400 && response.code() <= HTTP_STATUS_CODE_499) { |