- Sort Score
- Num 10 results
- Language All
Results 341 - 350 of 798 for eval (0.02 seconds)
-
okhttp/src/commonTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt
class PublicSuffixDatabaseTest { private val publicSuffixDatabase = PublicSuffixDatabase.get() val pathForTests = okHttpRoot / "okhttp/src/jvmMain/resources" / PUBLIC_SUFFIX_RESOURCE @Before fun setUp() { beforePublicSuffixTest() } @Test fun allPublicSuffixes() { val buffer = Buffer() FileSystem.SYSTEM.read(pathForTests) { val length = readInt()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue May 27 22:00:49 GMT 2025 - 8.5K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateContributorsInReleaseNotes.kt
@TaskAction fun update() { val contributorsInReleaseNotes = getContributorsInReleaseNotes().associateBy { it.login } val contributorsFromPullRequests = getContributorsFromPullRequests().associateBy { it.login } val unrecognizedContributors = contributorsFromPullRequests.keys - contributorsInReleaseNotes.keys if (unrecognizedContributors.isNotEmpty()) {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Sun Dec 15 07:49:41 GMT 2024 - 2K bytes - Click Count (0) -
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/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) -
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) -
okhttp/src/jvmTest/kotlin/okhttp3/ResponseJvmTest.kt
import okio.buffer import org.junit.jupiter.api.Test class ResponseJvmTest { @Test fun testEmptyByDefaultIfTrailersNotSet() { val response = newResponse("".toResponseBody()) assertThat(response.trailers()).isEmpty() } @Test fun worksIfTrailersSet() { val response = newResponse("".toResponseBody()) { trailers( object : TrailersSource {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jul 07 18:57:05 GMT 2025 - 2.8K bytes - Click Count (0) -
schema/utils.go
k := strings.TrimSpace(strings.ToUpper(values[0])) if len(values) >= 2 { val := strings.Join(values[1:], ":") val = strings.ReplaceAll(val, `\"`, `"`) settings[k] = val } else if k != "" { settings[k] = k } } return settings } func toColumns(val string) (results []string) { if val != "" { for _, v := range strings.Split(val, ",") { results = append(results, strings.TrimSpace(v)) } }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Oct 30 11:15:36 GMT 2025 - 5.9K bytes - Click Count (0)