MCPcopy Create free account
hub / github.com/FongMi/CatVodSpider / getLocation

Method getLocation

app/src/main/java/com/github/catvod/net/OkHttp.java:83–85  ·  view source on GitHub ↗
(String url, Map<String, String> header)

Source from the content-addressed store, hash-verified

81 }
82
83 public static String getLocation(String url, Map<String, String> header) throws IOException {
84 return getLocation(client().newBuilder().followRedirects(false).followSslRedirects(false).build().newCall(new Request.Builder().url(url).headers(Headers.of(header)).build()).execute().headers().toMultimap());
85 }
86
87 public static String getLocation(Map<String, List<String>> headers) {
88 if (headers == null) return null;

Callers

nothing calls this directly

Calls 6

clientMethod · 0.95
newCallMethod · 0.80
buildMethod · 0.80
executeMethod · 0.45
urlMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected