- Sort Score
- Num 10 results
- Language All
Results 381 - 390 of 970 for val1 (0.03 seconds)
-
samples/tlssurvey/src/main/kotlin/okhttp3/survey/CipherSuiteSurvey.kt
*/ class CipherSuiteSurvey( val clients: List<Client>, val ianaSuites: IanaSuites, val orderBy: List<SuiteId>, ) { fun printGoogleSheet() { print("name") for (client in clients) { print("\t") print(client.nameAndVersion) } println() val sortedSuites = ianaSuites.suites.sortedBy { ianaSuite -> val index = orderBy.indexOfFirst { it.matches(ianaSuite) }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Apr 02 01:44:15 GMT 2024 - 1.6K bytes - Click Count (0) -
okcurl/src/main/kotlin/okhttp3/curl/logging/OneLineLogFormat.kt
val message = formatMessage(record) val time = Instant.ofEpochMilli(record.millis).atZone(offset) return if (record.thrown != null) { val sw = StringWriter(4096) val pw = PrintWriter(sw) record.thrown.printStackTrace(pw) String.format("%s\t%s%n%s%n", time.format(d), message, sw.toString()) } else { String.format("%s\t%s%n", time.format(d), message) } }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 2.1K bytes - Click Count (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HeadersCommon.kt
return Headers(namesAndValues) } internal fun Map<String, String>.commonToHeaders(): Headers { // Make a defensive copy and clean it up. val namesAndValues = arrayOfNulls<String>(size * 2) var i = 0 for ((k, v) in this) { val name = k.trim() val value = v.trim() headersCheckName(name) headersCheckValue(value, name) namesAndValues[i] = name namesAndValues[i + 1] = value i += 2
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt
import org.junit.jupiter.api.extension.RegisterExtension class HttpUpgradesTest { @RegisterExtension val platform = PlatformRule() @RegisterExtension val clientTestRule = OkHttpClientTestRule() @StartStop private val server = MockWebServer() private var eventRecorder = EventRecorder() private val handshakeCertificates = platform.localhostHandshakeCertificates() private var client = clientTestRuleCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Feb 08 21:07:01 GMT 2026 - 9.7K bytes - Click Count (0) -
build-logic/src/main/kotlin/okhttp3/buildsupport/OkHttpBuildUtils.kt
package okhttp3.buildsupport import org.gradle.api.Project val Project.platform: String get() = findProperty("okhttp.platform")?.toString() ?: "jdk9" val Project.testJavaVersion: Int get() = findProperty("test.java.version")?.toString()?.toInt() ?: 21 val Project.androidBuild: Boolean get() = findProperty("androidBuild")?.toString()?.toBoolean() ?: false val Project.alpnBootVersion: String?
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 11 02:37:00 GMT 2026 - 1K bytes - Click Count (0) -
build-logic/dependency-modules/src/main/kotlin/gradlebuild.dependency-modules.gradle.kts
private fun forceUpgradeIfProvided(substitution: DependencySubstitution, to: String, version: String) { val r = substitution.requested as? ModuleComponentSelector ?: return val group = r.group val module = r.module val expectedLength = group.length + 1 + module.length val isProvided = providedBy.any { // This method is called very often during dependency resolution.Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Mar 26 09:04:32 GMT 2026 - 9.5K bytes - Click Count (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild.module-identity.gradle.kts
promotionBuild = isPromotionBuild val finalReleaseSuffix = buildFinalRelease.map { "" } val rcSuffix = buildRcNumber.map { "-rc-$it" } val milestoneSuffix = buildMilestoneNumber.map { "-milestone-$it" } val buildVersionQualifierSuffix = buildVersionQualifier.zip(buildTimestamp) { buildVersion, timestamp -> "-$buildVersion-$timestamp" } val buildTimestampSuffix = buildTimestamp.map { "-$it" }Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Mar 11 22:46:35 GMT 2026 - 5.8K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/FormBody.kt
) : RequestBody() { private val encodedNames: List<String> = encodedNames.toImmutableList() private val encodedValues: List<String> = encodedValues.toImmutableList() /** The number of key-value pairs in this form-encoded body. */ @get:JvmName("size") val size: Int get() = encodedNames.size @JvmName("-deprecated_size") @Deprecated( message = "moved to val",
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/TestTls13Request.kt
* as part of MODERN_TLS or folded into the default OkHttp client once published and * available in JDK11 or Conscrypt. */ private val TLS_13 = ConnectionSpec .Builder(true) .cipherSuites(*TLS13_CIPHER_SUITES.toTypedArray()) .tlsVersions(TlsVersion.TLS_1_3) .build() private val TLS_12 = ConnectionSpec .Builder(ConnectionSpec.RESTRICTED_TLS) .tlsVersions(TlsVersion.TLS_1_2) .build()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu May 22 14:39:30 GMT 2025 - 3.6K bytes - Click Count (0) -
build-logic-commons/publishing/src/main/kotlin/gradlebuild.publish-defaults.gradle.kts
plugins { id("publishing") } val artifactoryUrl get() = System.getenv("GRADLE_INTERNAL_REPO_URL") ?: "" val artifactoryUserName get() = project.providers.gradleProperty("artifactoryUserName").orNull val artifactoryUserPassword get() = project.providers.gradleProperty("artifactoryUserPassword").orNull tasks.withType<AbstractPublishToMaven>().configureEach { val noUpload = project.gradleProperty("noUpload")Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Feb 06 07:41:19 GMT 2026 - 3.4K bytes - Click Count (0)