- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 41 for ArrayOf (0.09 sec)
-
okhttp/src/test/java/okhttp3/HeadersTest.kt
} @Test fun ofAcceptsEmptyValue() { val headers = headersOf("User-Agent", "") assertThat(headers.value(0)).isEqualTo("") } @Test fun ofMakesDefensiveCopy() { val namesAndValues = arrayOf( "User-Agent", "OkHttp", ) val headers = headersOf(*namesAndValues) namesAndValues[1] = "Chrome" assertThat(headers.value(0)).isEqualTo("OkHttp") }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/ConscryptPlatform.kt
} else { super.getSelectedProtocol(sslSocket) } override fun newSslSocketFactory(trustManager: X509TrustManager): SSLSocketFactory { return newSSLContext().apply { init(null, arrayOf<TrustManager>(trustManager), null) }.socketFactory } companion object { val isSupported: Boolean = try {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMapTest.java
@GwtIncompatible // SerializableTester public void testKeySetIsSerializable_jdkBackedImmutableMap() { class NonSerializableClass {} Entry<String, NonSerializableClass>[] entries = arrayOf(ImmutableMap.entryOf("one", new NonSerializableClass())); ImmutableMap<String, NonSerializableClass> map = JdkBackedImmutableMap.create(1, entries, /* throwIfDuplicateKeys= */ true);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 41.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/DateFormatting.kt
timeZone = UTC } } } /** If we fail to parse a date in a non-standard format, try each of these formats in sequence. */ private val BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS = arrayOf( // HTTP formats required by RFC2616 but with any timezone: // RFC 822, updated by RFC 1123 with any TZ. "EEE, dd MMM yyyy HH:mm:ss zzz", // RFC 850, obsoleted by RFC 1036 with any TZ.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2.kt
const val FLAG_PRIORITY = 0x20 // Used for headers. const val FLAG_COMPRESSED = 0x20 // Used for data. /** Lookup table for valid frame types. */ private val FRAME_NAMES = arrayOf( "DATA", "HEADERS", "PRIORITY", "RST_STREAM", "SETTINGS", "PUSH_PROMISE", "PING", "GOAWAY", "WINDOW_UPDATE", "CONTINUATION", ) /**
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt
open fun newSslSocketFactory(trustManager: X509TrustManager): SSLSocketFactory { try { return newSSLContext().apply { init(null, arrayOf<TrustManager>(trustManager), null) }.socketFactory } catch (e: GeneralSecurityException) { throw AssertionError("No System TLS: $e", e) // The system has no TLS. Just give up. } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt
require(inputNamesAndValues.size % 2 == 0) { "Expected alternating header names and values" } // Make a defensive copy and clean it up. val namesAndValues: Array<String> = arrayOf(*inputNamesAndValues) for (i in namesAndValues.indices) { require(namesAndValues[i] != null) { "Headers cannot be null" } namesAndValues[i] = inputNamesAndValues[i].trim() }
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/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)