(String url)
| 102 | } |
| 103 | |
| 104 | public static String string(String url) { |
| 105 | if (!url.startsWith("http")) return ""; |
| 106 | try (Response res = newCall(url).execute()) { |
| 107 | return res.body().string(); |
| 108 | } catch (Exception e) { |
| 109 | e.printStackTrace(); |
| 110 | return ""; |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | public static String string(String url, Map<String, String> headers) { |
| 115 | if (!url.startsWith("http")) return ""; |
no test coverage detected