MCPcopy Create free account
hub / github.com/FongMi/TV / string

Method string

catvod/src/main/java/com/github/catvod/net/OkHttp.java:104–112  ·  view source on GitHub ↗
(String url)

Source from the content-addressed store, hash-verified

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 "";

Callers 15

fetchMethod · 0.95
doInBackgroundMethod · 0.95
getStringMethod · 0.95
fetchExtMethod · 0.95
fetchMethod · 0.95
fetchEpgDayMethod · 0.95
actionMethod · 0.95
getTextMethod · 0.95
parseJarMethod · 0.95
fetchMethod · 0.95
onResponseMethod · 0.80
jsonParseMethod · 0.80

Calls 4

newCallMethod · 0.95
bodyMethod · 0.80
startsWithMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected