- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for linting (0.21 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt
// 3. This connection's server certificate's must cover the new host. if (address.hostnameVerifier !== OkHostnameVerifier) return false if (!supportsUrl(address.url)) return false // 4. Certificate pinning must match the host. try { address.certificatePinner!!.check(address.url.host, handshake()!!.peerCertificates) } catch (_: SSLPeerUnverifiedException) { return false }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 15.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
// Fails on 11.0.1 https://github.com/square/okhttp/issues/4703 enableTls() server.enqueue(MockResponse()) server.enqueue(MockResponse()) // Make a first request without certificate pinning. Use it to collect certificates to pin. val request1 = Request.Builder().url(server.url("/")).build() val response1 = client.newCall(request1).execute() val certificatePinnerBuilder = CertificatePinner.Builder()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 142.5K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt
} throw unknownHostException } private fun getCacheOnlyResponse(request: Request): Response? { if (client.cache != null) { try { // Use the cache without hitting the network first // 504 code indicates that the Cache is stale val onlyIfCached = CacheControl.Builder() .onlyIfCached() .build()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Mar 22 07:09:21 GMT 2024 - 9.8K bytes - Viewed (0)