- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 45 for arrayFor (0.12 sec)
-
okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt
newTrustManager( keystoreType, emptyList(), emptyList(), ) val sslContext = get().newSSLContext() sslContext.init( arrayOf<KeyManager>(x509KeyManager), arrayOf<TrustManager>(trustManager), SecureRandom(), ) return sslContext.socketFactory }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 23.8K bytes - Viewed (0) -
docs/features/https.md
init { val trustManager = trustManagerForCertificates(trustedCertificatesInputStream()) val sslContext = SSLContext.getInstance("TLS") sslContext.init(null, arrayOf<TrustManager>(trustManager), null) val sslSocketFactory = sslContext.socketFactory client = OkHttpClient.Builder() .sslSocketFactory(sslSocketFactory, trustManager) .build()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Dec 24 00:16:30 UTC 2022 - 10.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt
x509Certificates: Array<X509Certificate>, s: String, ) { } override fun getAcceptedIssuers(): Array<X509Certificate> { return arrayOf() } } client = client.newBuilder() .sslSocketFactory(client.sslSocketFactory, trustManager) .build() server.enqueue(MockResponse())
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 18.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
// Type inference is doomed here: int.class is the same as Integer.class, so this is comparing // TypeToken<int[]> and TypeToken<Integer[]>. assertEquals(new TypeToken<int[]>() {}, arrayOf(int.class)); assertEquals(int[].class, arrayOf(int.class).getRawType()); } @SuppressWarnings("unused") // used by reflection private static class Holder<T> { List<T>[] matrix; void setList(List<T> list) {}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 21:13:09 UTC 2024 - 89.1K bytes - Viewed (0) -
tests/create_test.go
}} if err := DB.Create(&pets).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } for _, pet := range pets { CheckPet(t, pet, pet) } }) t.Run("ArrayPtr", func(t *testing.T) { pets := [...]*Pet{{ Name: "PolymorphicHasOne-Array-1", Toy: Toy{Name: "Toy-PolymorphicHasOne-Array-1"}, }, { Name: "PolymorphicHasOne-Array-2",
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Mar 19 03:50:28 UTC 2024 - 26.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt
* to use less. We'll put a cap at 16K. This is arbitrary but should be enough for most purposes. */ private const val SETTINGS_HEADER_TABLE_SIZE_LIMIT = 16_384 val STATIC_HEADER_TABLE = arrayOf( Header(TARGET_AUTHORITY, ""), Header(TARGET_METHOD, "GET"), Header(TARGET_METHOD, "POST"), Header(TARGET_PATH, "/"), Header(TARGET_PATH, "/index.html"), Header(TARGET_SCHEME, "http"),
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 22.5K bytes - Viewed (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
assertThat(headersToList(response)).containsExactly("Content-Length: 0") assertThat(response.status).isEqualTo("HTTP/1.1 200 OK") } @Test fun setResponseMockReason() { val reasons = arrayOf( "Mock Response", "Informational", "OK", "Redirection", "Client Error", "Server Error", "Mock Response", ) for (i in 0..599) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.9K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
assertThat(headersToList(builder)).containsExactly("Content-Length: 0") assertThat(builder.status).isEqualTo("HTTP/1.1 200 OK") } @Test fun setResponseMockReason() { val reasons = arrayOf<String?>( "Mock Response", "Informational", "OK", "Redirection", "Client Error", "Server Error", "Mock Response", ) for (i in 0..599) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 23.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
// Type inference is doomed here: int.class is the same as Integer.class, so this is comparing // TypeToken<int[]> and TypeToken<Integer[]>. assertEquals(new TypeToken<int[]>() {}, arrayOf(int.class)); assertEquals(int[].class, arrayOf(int.class).getRawType()); } @SuppressWarnings("unused") // used by reflection private static class Holder<T> { List<T>[] matrix; void setList(List<T> list) {}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 21:13:09 UTC 2024 - 89.1K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
return reuseSocket } } @Throws(Exception::class) private fun processHandshakeFailure(raw: Socket) { val context = SSLContext.getInstance("TLS") context.init(null, arrayOf<TrustManager>(UNTRUSTED_TRUST_MANAGER), SecureRandom()) val sslSocketFactory = context.socketFactory val socket = sslSocketFactory.createSocket( raw, raw.inetAddress.hostAddress,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 37.4K bytes - Viewed (0)