- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for fetchIanaSuites (0.1 sec)
-
samples/tlssurvey/src/main/kotlin/okhttp3/survey/Iana.kt
return suites.firstOrNull { it.name == javaName || it.name == "TLS_${javaName.drop(4)}" } ?: throw IllegalArgumentException("No such suite: $javaName") } } suspend fun fetchIanaSuites(okHttpClient: OkHttpClient): IanaSuites { val url = "https://www.iana.org/assignments/tls-parameters/tls-parameters-4.csv" val call = okHttpClient.newCall(Request(url.toHttpUrl())) val suites =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 18 01:24:38 UTC 2024 - 2K bytes - Viewed (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/RunSurvey.kt
val client = OkHttpClient.Builder() .cache(Cache(FileSystem.SYSTEM, "build/okhttp_cache".toPath(), 100_000_000)) .build() val sslLabsClients = SslLabsClient(client).clients() val ianaSuitesNew = fetchIanaSuites(client) val android5 = sslLabsClients.first { it.userAgent == "Android" && it.version == "5.0.0" } val android9 = sslLabsClients.first { it.userAgent == "Android" && it.version == "9.0" }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 3.5K bytes - Viewed (0)