- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 91 for varargs (0.21 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HeadersCommon.kt
} } } private fun Char.charCode() = code.toString(16).let { if (it.length < 2) { "0$it" } else { it } } internal fun commonHeadersOf(vararg inputNamesAndValues: String): Headers { require(inputNamesAndValues.size % 2 == 0) { "Expected alternating header names and values" } // Make a defensive copy and clean it up.
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 5.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CertificateChainCleanerTest.kt
.certificateAuthority(length - i) .serialNumber(i.toLong()) .build(), ) } return result } private fun list(vararg heldCertificates: HeldCertificate): List<Certificate> { val result: MutableList<Certificate> = ArrayList() for (heldCertificate in heldCertificates) { result.add(heldCertificate.certificate) }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 9.5K bytes - Viewed (1) -
build-logic/dependency-modules/src/main/kotlin/gradlebuild.dependency-modules.gradle.kts
removeAll { !moduleToKeep.contains(it.name) } } } } } inline fun <reified T : ComponentMetadataRule> ComponentMetadataHandler.applyRule(module: String, vararg modulesToRemove: Any) { withModule<T>(module) { params(*modulesToRemove) } } /** * The JDK now provides these. */ abstract class RemoveXmlApisRule : ComponentMetadataRule {Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Fri Jul 18 11:32:19 UTC 2025 - 9.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketRecorder.kt
val event = nextEvent() as Failure assertThat(event.response).isNull() assertThat(event.t).isSameAs(t) } fun assertFailure( cls: Class<out IOException?>?, vararg messages: String, ) { val event = nextEvent() as Failure assertThat(event.response).isNull() assertThat(event.t.javaClass).isEqualTo(cls) if (messages.isNotEmpty()) {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 6.8K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt
} fun bootstrapDnsHosts(bootstrapDnsHosts: List<InetAddress>?) = apply { this.bootstrapDnsHosts = bootstrapDnsHosts } fun bootstrapDnsHosts(vararg bootstrapDnsHosts: InetAddress): Builder = bootstrapDnsHosts(bootstrapDnsHosts.toList()) fun systemDns(systemDns: Dns) = apply { this.systemDns = systemDns } }Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 8.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt
ResponseBodyStart::class, ResponseBodyEnd::class, RequestBodyEnd::class, ConnectionReleased::class, CallEnd::class, ) } private fun enableTls(vararg protocols: Protocol) { client = client .newBuilder() .protocols(protocols.toList()) .sslSocketFactory( handshakeCertificates.sslSocketFactory(),Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 9.6K bytes - Viewed (0) -
docs/changelogs/upgrading_to_okhttp_4.md
* **TlsVersion**: javaName #### Renamed Functions * **Headers.of()**: for symmetry with `listOf()`, `setOf()`, etc., we’ve replaced `Headers.of(String...)` with `headersOf(vararg String)`. #### Extension Functions We’ve migrated from static functions to extension functions where we think they fit. | Java | Kotlin |
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sun Feb 06 16:58:16 UTC 2022 - 10.9K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
newHeadersToRedact += headersToRedact newHeadersToRedact += name headersToRedact = newHeadersToRedact } fun redactQueryParams(vararg name: String) { val newQueryParamsNameToRedact = TreeSet(String.CASE_INSENSITIVE_ORDER) newQueryParamsNameToRedact += queryParamsNameToRedact newQueryParamsNameToRedact.addAll(name)Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Nov 07 02:57:33 UTC 2025 - 11.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/ClientAuthTest.kt
ConnectStart::class, SecureConnectStart::class, ) assertThat(recordedEventTypes).endsWith(CallFailed::class) } private fun buildClient( heldCertificate: HeldCertificate?, vararg intermediates: X509Certificate, ): OkHttpClient { val builder = HandshakeCertificates .Builder() .addTrustedCertificate(serverRootCa.certificate) if (heldCertificate != null) {Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 13K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt
* that we expect to be known by the remote peer. The peer already has that certificate so * transmitting it is unnecessary. */ fun heldCertificate( heldCertificate: HeldCertificate, vararg intermediates: X509Certificate, ) = apply { this.heldCertificate = heldCertificate this.intermediates = arrayOf(*intermediates) // Defensive copy. } /**Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 8.4K bytes - Viewed (0)