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

Method build

app/src/main/java/com/github/catvod/net/OkHttp.java:111–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109 }
110
111 private static OkHttpClient build() {
112 if (get().client != null) return get().client;
113 return get().client = getBuilder().build();
114 }
115
116 private static OkHttpClient.Builder getBuilder() {
117 return new OkHttpClient.Builder().dns(safeDns()).connectTimeout(TIMEOUT, TimeUnit.MILLISECONDS).readTimeout(TIMEOUT, TimeUnit.MILLISECONDS).writeTimeout(TIMEOUT, TimeUnit.MILLISECONDS).hostnameVerifier((hostname, session) -> true).sslSocketFactory(getSSLContext().getSocketFactory(), trustAllCertificates());

Callers 8

clientMethod · 0.95
getUriForFileMethod · 0.80
getPlayUrlMethod · 0.80
getApiUrlMethod · 0.80
buildRequestMethod · 0.80
getRequestBodyMethod · 0.80
newCallMethod · 0.80
getLocationMethod · 0.80

Calls 2

getMethod · 0.95
getBuilderMethod · 0.95

Tested by

no test coverage detected