- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for toCanonicalHost (0.21 sec)
-
okhttp/src/test/java/okhttp3/internal/HostnamesTest.kt
fun testToCanonicalHost() { // IPv4 assertThat("127.0.0.1".toCanonicalHost()).isEqualTo("127.0.0.1") assertThat("1.2.3.4".toCanonicalHost()).isEqualTo("1.2.3.4") // IPv6 assertThat("::1".toCanonicalHost()).isEqualTo("::1") assertThat("2001:db8::1".toCanonicalHost()).isEqualTo("2001:db8::1") assertThat("::ffff:192.168.0.1".toCanonicalHost()).isEqualTo("192.168.0.1") assertThat(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 30 06:23:33 GMT 2024 - 5.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt
private fun verifyIpAddress( ipAddress: String, certificate: X509Certificate, ): Boolean { val canonicalIpAddress = ipAddress.toCanonicalHost() return getSubjectAltNames(certificate, ALT_IPA_NAME).any { canonicalIpAddress == it.toCanonicalHost() } } /** Returns true if [certificate] matches [hostname]. */ private fun verifyHostname( hostname: String,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 7.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Route.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3 import java.net.InetSocketAddress import java.net.Proxy import okhttp3.internal.toCanonicalHost /** * The concrete route used by a connection to reach an abstract origin server. When creating a * connection the client has many options: *
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.3K bytes - Viewed (0)