Method
getLocation
(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
Tested by
no test coverage detected