@Test public void testSyncGet() { String url = "http: Map<String, String> params = new HashMap<>(); params.put("res", "mnLue%2FPmm7oHWsqfMeWJC9svT6OsJ2wG4VkjAhQ8IAYT2%2FpRviOQpG%2FuDc1T7RrhAJgq34Zdrh%2FbyxwyZONt5XiPVVCs9Ahtcwb5ePFldwhsP8z51ICKQj3XDnPyQB5VDt83FQJ%2FgaxDBZSC0cA5Bw%3D%3D"); params.put("ver", "ver_0.0.1"); System.out.println(OkHttp3Util.syncGet(url, params)); }
public static String syncGet(String url) { return doSyncGet(url, null, null); }
OkHttp3Util { public static String syncGet(String url) { return doSyncGet(url, null, null); } }
OkHttp3Util { public static String syncGet(String url) { return doSyncGet(url, null, null); }  }
OkHttp3Util { public static String syncGet(String url) { return doSyncGet(url, null, null); }  static String syncGet(String url); static void asyncGet(String url, Callback callback); static String syncGet(String baseUrl, Map<String, String> params); static void asyncGet(String baseUrl, Map<String, String> params, Callback callback); static String syncGet(String baseUrl, Map<String, String> params, Map<String, String> headers); static void asyncGet(String baseUrl, Map<String, String> params, Map<String, String> headers,
                                Callback callback); static String syncPost(String url, Map<String, String> params); static void asyncPost(String url, Map<String, String> params, Callback callback); static String syncPost(String url, Map<String, String> params, Map<String, String> headers); static void asyncPost(String url, Map<String, String> params, Map<String, String> headers, Callback callback); static String syncPostJson(String url, String json); static void asyncPostJson(String url, String json, Callback callback); static String syncPostJson(String url, String json, Map<String, String> headersMap); static void asyncPostJson(String url, String json, Map<String, String> headersMap, Callback callback); static void asyncGet(OkHttpClient client, String baseUrl, Map<String, String> params, Map<String, String> headersMap,
                                Callback callback); static void asyncPost(OkHttpClient client, String url, RequestBody body, Map<String, String> headersMap,
                                 Callback callback); static OkHttpClient getInstance(); }
OkHttp3Util { public static String syncGet(String url) { return doSyncGet(url, null, null); }  static String syncGet(String url); static void asyncGet(String url, Callback callback); static String syncGet(String baseUrl, Map<String, String> params); static void asyncGet(String baseUrl, Map<String, String> params, Callback callback); static String syncGet(String baseUrl, Map<String, String> params, Map<String, String> headers); static void asyncGet(String baseUrl, Map<String, String> params, Map<String, String> headers,
                                Callback callback); static String syncPost(String url, Map<String, String> params); static void asyncPost(String url, Map<String, String> params, Callback callback); static String syncPost(String url, Map<String, String> params, Map<String, String> headers); static void asyncPost(String url, Map<String, String> params, Map<String, String> headers, Callback callback); static String syncPostJson(String url, String json); static void asyncPostJson(String url, String json, Callback callback); static String syncPostJson(String url, String json, Map<String, String> headersMap); static void asyncPostJson(String url, String json, Map<String, String> headersMap, Callback callback); static void asyncGet(OkHttpClient client, String baseUrl, Map<String, String> params, Map<String, String> headersMap,
                                Callback callback); static void asyncPost(OkHttpClient client, String url, RequestBody body, Map<String, String> headersMap,
                                 Callback callback); static OkHttpClient getInstance(); static final MediaType JSON_TYPE; static final MediaType FORM_DATA; }