- Sort Score
- Result 10 results
- Languages All
Results 341 - 350 of 880 for val3 (0.02 sec)
-
samples/guide/src/test/kotlin/okhttp3/AllMainsTest.kt
import org.junit.jupiter.api.Tag import org.junit.jupiter.params.ParameterizedTest import org.junit.jupiter.params.provider.ArgumentsSource private val prefix = if (File("samples").exists()) "" else "../../" private fun mainFiles(): List<File> { val directories = listOf( "$prefix/samples/guide/src/main/java/okhttp3/guide", "$prefix/samples/guide/src/main/java/okhttp3/recipes",
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt
.build(), ) val request = HttpRequest.newBuilder(server.url("/").toUri()) .header("Accept", "text/plain") .build() val response = httpClient.send(request, BodyHandlers.ofString()) assertThat(response.statusCode()).isEqualTo(200) assertThat(response.body()).isEqualTo("hello, Java HTTP Client") val recorded = server.takeRequest()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/FormBodyTest.kt
.addEncoded("%25", "%25") .build() val expected = "a+%3D%26+b=c+%3D%26+d&e+%3D%26+f=g+%3D%26+h&%25=%25" val out = Buffer() body.writeTo(out) assertThat(out.readUtf8()).isEqualTo(expected) } @Test fun encodedPair() { val body = FormBody.Builder() .add("sim", "ple") .build() val expected = "sim=ple"
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.8K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt
import org.junit.jupiter.api.extension.RegisterExtension @Tag("Slowish") class DnsOverHttpsTest { @RegisterExtension val platform = PlatformRule() private lateinit var server: MockWebServer private lateinit var dns: Dns private val cacheFs = FakeFileSystem() private val bootstrapClient = OkHttpClient.Builder() .protocols(listOf(Protocol.HTTP_2, Protocol.HTTP_1_1)) .build() @BeforeEach
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 11K bytes - Viewed (0) -
.teamcity/src/main/kotlin/model/bucket-extensions.kt
return list.chunked(list.size / expectedBucketNumber, smallElementAggregateFunction) } val largestElement = list.removeFirst()!! val largestElementSize = toIntFunction(largestElement) return if (largestElementSize >= expectedBucketSize) { val bucketNumberOfFirstElement = if (largestElementSize % expectedBucketSize == 0) largestElementSize / expectedBucketSize else
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Nov 17 05:17:44 UTC 2022 - 4K bytes - Viewed (0) -
build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/Cleanup.kt
import org.gradle.api.logging.Logging import org.gradle.api.specs.Spec import org.gradle.kotlin.dsl.* import org.gradle.util.GradleVersion import java.io.File private val dirVersionPattern = "\\d+\\.\\d+(\\.\\d+)?(-\\w+)*(-\\d{14}[+-]\\d{4})?".toRegex() val logger = Logging.getLogger("gradlebuild.cleanup") /** * Removes state for versions that we're unlikely to ever need again, such as old snapshot versions. */
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Jun 28 08:29:28 UTC 2024 - 4.4K bytes - Viewed (0) -
build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/services/CachesCleaner.kt
abstract class CachesCleaner : BuildService<CachesCleaner.Params> { interface Params : BuildServiceParameters { val gradleVersion: Property<String> val homeDir: DirectoryProperty } @get:Inject abstract val fileSystemOperations: FileSystemOperations private var hasCleaned = false val logger = Logging.getLogger(CachesCleaner::class.java) fun cleanUpCaches() { synchronized(this) {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Jun 28 08:29:28 UTC 2024 - 4.2K bytes - Viewed (0) -
okcurl/src/main/kotlin/okhttp3/curl/internal/-MainCommon.kt
internal fun Main.commonCreateRequest(): Request { val request = Request.Builder() val requestMethod = method ?: if (data != null) "POST" else "GET" val url = url ?: throw IOException("No url provided") request.url(url) data?.let { request.method(requestMethod, it.toRequestBody(mediaType())) } for (header in headers.orEmpty()) { val parts = header.split(':', limit = 2)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/tasks/BuildReceipt.kt
const val buildReceiptFileName = "build-receipt.properties" const val buildReceiptLocation = "org/gradle/$buildReceiptFileName" } @get:Input abstract val version: Property<String> @get:Input abstract val baseVersion: Property<String> @get:Input @get:Optional abstract val commitId: Property<String> @get:Input
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Sat Sep 30 16:17:28 UTC 2023 - 4.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/AutobahnTester.kt
val endNanos = System.nanoTime() val tookMs = TimeUnit.NANOSECONDS.toMillis(endNanos - startNanos.get()) println("Took ${tookMs}ms") } private fun getTestCount(): Long { val latch = CountDownLatch(1) val countRef = AtomicLong() val failureRef = AtomicReference<Throwable>() newWebSocket( "/getCaseCount",
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.6K bytes - Viewed (0)