- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,343 for arrayOf (0.06 sec)
-
okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt
socket.enabledCipherSuites = arrayOf( CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256.javaName, ) socket.enabledProtocols = arrayOf( TlsVersion.TLS_1_2.javaName, TlsVersion.TLS_1_1.javaName, ) assertThat(tlsSpec.isCompatible(socket)).isTrue() socket.enabledProtocols = arrayOf(TlsVersion.TLS_1_1.javaName)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 14.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CipherSuiteTest.kt
assertArrayEquals(arrayOf("TLS_A", "TLS_C"), socket.enabledCipherSuites) } @Test fun applyIntersectionRetainsSslPrefixes() { val socket = FakeSslSocket() socket.enabledProtocols = arrayOf("TLSv1") socket.supportedCipherSuites = arrayOf("TLS_A", "TLS_B", "TLS_C", "TLS_D", "TLS_E") socket.enabledCipherSuites = arrayOf("TLS_A", "TLS_B", "TLS_C") val connectionSpec =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.2K bytes - Viewed (0) -
internal/grid/types.go
}}, } } // New returns a new empty Array. func (p *ArrayOf[T]) New() *Array[T] { return &Array[T]{ p: p, } } // NewWith returns a new Array with the provided value (not copied). func (p *ArrayOf[T]) NewWith(val []T) *Array[T] { return &Array[T]{ p: p, val: val, } } func (p *ArrayOf[T]) newA(sz uint32) []T { t, ok := p.aPool.Get().(*[]T) if !ok || t == nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 15.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HandshakeTest.kt
} } class FakeSSLSession( private val protocol: String, private val cipherSuite: String, private val peerCertificates: Array<Certificate>?, private val localCertificates: Array<Certificate>?, ) : DelegatingSSLSession(null) { override fun getProtocol() = protocol override fun getCipherSuite() = cipherSuite
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.2K bytes - Viewed (0) -
okhttp-android/src/test/kotlin/okhttp3/android/ShadowDnsResolver.kt
) { responder(Request(network, domain, nsType, flags, callback)) } companion object { @Implementation @JvmStatic fun getInstance(): DnsResolver = Shadow.newInstance(DnsResolver::class.java, arrayOf(), arrayOf()) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 22 20:07:09 UTC 2024 - 1.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatform.kt
/** The protocol the server selected. */ var selected: String? = null @Throws(Throwable::class) override fun invoke( proxy: Any, method: Method, args: Array<Any>?, ): Any? { val callArgs = args ?: arrayOf<Any?>() val methodName = method.name val returnType = method.returnType if (methodName == "supports" && Boolean::class.javaPrimitiveType == returnType) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt
val keyManager = keyManagerFactory.keyManagers[0] as X509ExtendedKeyManager val trustManager = Platform.get().platformTrustManager() val sslContext = SSLContext.getInstance("TLS") sslContext.init(arrayOf(keyManager), arrayOf(trustManager), SecureRandom()) val client = OkHttpClient.Builder() .sslSocketFactory(sslContext.socketFactory, trustManager) .build()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.2K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/KotlinMetadataQueries.kt
metadataVersion = annotation.getMemberValue("mv")?.intArrayValue ?: IntArray(0), data1 = annotation.getMemberValue("d1")?.stringArrayValue ?: arrayOf(), data2 = annotation.getMemberValue("d2")?.stringArrayValue ?: arrayOf(), extraString = annotation.getMemberValue("xs")?.stringValue ?: "", packageName = annotation.getMemberValue("pn")?.stringValue ?: "",
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Aug 21 12:41:59 UTC 2024 - 4.8K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt
fun sslContext(): SSLContext { return Platform.get().newSSLContext().apply { init(arrayOf<KeyManager>(keyManager), arrayOf<TrustManager>(trustManager), SecureRandom()) } } class Builder { private var heldCertificate: HeldCertificate? = null private var intermediates: Array<X509Certificate>? = null private val trustedCertificates = mutableListOf<X509Certificate>()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CommonRequestBodyTest.kt
import okhttp3.RequestBody.Companion.toRequestBody class CommonRequestBodyTest { @Test fun correctContentType() { val body = "Body" val requestBody = body.toRequestBody(MediaType("text/plain", "text", "plain", arrayOf())) val contentType = requestBody.contentType()!! assertThat(contentType.mediaType).isEqualTo("text/plain; charset=utf-8") assertThat(contentType.parameter("charset")).isEqualTo("utf-8") }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Dec 20 23:27:07 UTC 2023 - 1.1K bytes - Viewed (0)