- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for toTypedArray (0.17 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidCertificateChainCleaner.kt
@SuppressSignatureCheck override fun clean( chain: List<Certificate>, hostname: String, ): List<Certificate> { val certificates = (chain as List<X509Certificate>).toTypedArray() try { return x509TrustManagerExtensions.checkServerTrusted(certificates, "RSA", hostname) } catch (ce: CertificateException) { throw SSLPeerUnverifiedException(ce.message).apply { initCause(ce) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/KotlinInternalFilteringTest.kt
v1 = internalSource, v2 = publicSource ).apply { assertHasErrors( *reportedMembers.map { added(it.first, it.second) }.toTypedArray() ) assertHasNoWarning() assertHasNoInformation() } } @Test fun `existing public members made internal appear as removed`() {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Jun 27 13:51:10 UTC 2024 - 6.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/WebPlatformUrlTestData.kt
while (true) { val line = source.readUtf8Line() ?: break if (line.isEmpty() || line.startsWith("#")) continue var i = 0 val parts = line.split(Regex(" ")).toTypedArray() val element = WebPlatformUrlTestData() element.input = unescape(parts[i++]) val base = if (i < parts.size) parts[i++] else null element.base = when {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt
else -> token } parameterNamesAndValues += name parameterNamesAndValues += value s = parameter.range.last + 1 } return MediaType(this, type, subtype, parameterNamesAndValues.toTypedArray()) } /** Returns a media type for this, or null if this is not a well-formed media type. */ fun String.commonToMediaTypeOrNull(): MediaType? { return try { commonToMediaType()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.1K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt
try { readStory(story00) result.add(path.name) } catch (ignored: IOException) { // Skip this path. } } return result.toTypedArray<String>() } /** * Reads stories named "story_xx.json" from the folder provided. */ fun readStories(testFolderName: String): List<Story> { val result = mutableListOf<Story>() var i = 0
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/OpenJSSEPlatform.kt
if (sslParameters is org.openjsse.javax.net.ssl.SSLParameters) { // Enable ALPN. val names = alpnProtocolNames(protocols) sslParameters.applicationProtocols = names.toTypedArray() sslSocket.sslParameters = sslParameters } } else { super.configureTlsExtensions(sslSocket, hostname, protocols) } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/osgi/OsgiTest.kt
val classpath = System.getProperty("java.class.path") val entries = classpath.split(File.pathSeparator.toRegex()) .dropLastWhile { it.isEmpty() } .toTypedArray() for (classPathEntry in entries) { deployFile(classPathEntry.toPath()) } } private fun RepositoryPlugin.deployFile(file: Path) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt
if (name.equals(namesAndValues[i], ignoreCase = true)) { return namesAndValues[i + 1] } } return null } internal fun Headers.Builder.commonBuild(): Headers = Headers(namesAndValues.toTypedArray()) internal fun headersCheckName(name: String) { require(name.isNotEmpty()) { "name is empty" } for (i in name.indices) { val c = name[i] require(c in '\u0021'..'\u007e') {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/BouncyCastlePlatform.kt
) { if (sslSocket is BCSSLSocket) { val sslParameters = sslSocket.parameters // Enable ALPN. val names = alpnProtocolNames(protocols) sslParameters.applicationProtocols = names.toTypedArray() sslSocket.parameters = sslParameters } else { super.configureTlsExtensions(sslSocket, hostname, protocols) } } override fun getSelectedProtocol(sslSocket: SSLSocket): String? =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/FallbackTestClientSocketFactory.kt
for (suite in suites) { if (suite != TLS_FALLBACK_SCSV) { enabledCipherSuites.add(suite) } } delegate!!.enabledCipherSuites = enabledCipherSuites.toTypedArray<String>() } } companion object { /** * The cipher suite used during TLS connection fallback to indicate a fallback. See * https://tools.ietf.org/html/draft-ietf-tls-downgrade-scsv-00
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2K bytes - Viewed (0)