- Sort Score
- Num 10 results
- Language All
Results 581 - 590 of 949 for Val (0.01 seconds)
-
okhttp-testing-support/src/main/kotlin/okhttp3/UppercaseRequestInterceptor.kt
/** Returns a request that transforms `request` to be all uppercase. */ private fun uppercaseRequest(request: Request): Request { val uppercaseBody: RequestBody = object : ForwardingRequestBody(request.body) { @Throws(IOException::class) override fun writeTo(sink: BufferedSink) { delegate().writeTo(uppercaseSink(sink).buffer())
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.9K bytes - Click Count (0) -
cmd/http-stats.go
stats.Lock() defer stats.Unlock() if val, ok := stats.apiStats[api]; ok && val > 0 { stats.apiStats[api]-- } } // Get returns the current counter on input API string func (stats *HTTPAPIStats) Get(api string) int { if stats == nil { return 0 } stats.RLock() defer stats.RUnlock() val, ok := stats.apiStats[api] if ok { return val } return 0 }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Sep 24 17:13:00 GMT 2024 - 11.4K bytes - Click Count (0) -
internal/cachevalue/cache.go
} func (t *Cache[T]) update(ctx context.Context) error { val, err := t.updateFn(ctx) if err != nil { if t.opts.ReturnLastGood && t.val.Load() != nil { // Keep last good value, so update // does not return an error. return nil } return err } t.val.Store(&val) t.lastUpdateMs.Store(time.Now().UnixMilli()) return nil
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri May 24 12:50:46 GMT 2024 - 4.4K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/model/ReleasedVersion.kt
* limitations under the License. */ package gradlebuild.buildutils.model import org.gradle.util.GradleVersion data class ReleasedVersion(val version: String, val buildTime: String) { fun gradleVersion() = GradleVersion.version(version)
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Mar 23 14:47:12 GMT 2026 - 826 bytes - Click Count (0) -
build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt
val result = run(":flaky-test-without-leftover:test").build() assertEquals(TaskOutcome.SUCCESS, result.task(":flaky-test-without-leftover:test")!!.outcome) assertArchivedFilesSeen("report-flaky-test-without-leftover-test.zip") } @Test fun `leftover files are archived when test fails`() { val result = run(
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Feb 10 00:16:44 GMT 2026 - 11.6K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/CertificatePinning.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.4K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformVersion.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.testing object PlatformVersion { val majorVersion: Int by lazy { when (val jvmSpecVersion = getJvmSpecVersion()) { "1.8" -> 8 else -> jvmSpecVersion.toInt() } } fun getJvmSpecVersion(): String = System.getProperty("java.specification.version", "unknown")Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 902 bytes - Click Count (0) -
.teamcity/src/main/kotlin/common/JvmCategory.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package common enum class JvmCategory( override val vendor: JvmVendor, override val version: JvmVersion, ) : Jvm { MIN_VERSION(JvmVendor.OPENJDK, JvmVersion.JAVA_17), MAX_LTS_VERSION(JvmVendor.OPENJDK, JvmVersion.JAVA_25), MAX_VERSION(JvmVendor.OPENJDK, JvmVersion.JAVA_26),
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Jan 15 19:30:24 GMT 2026 - 994 bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/PublicInternalApiTest.kt
} @Test fun requiresRequestBody() { assertTrue(requiresRequestBody("PUT")) assertFalse(requiresRequestBody("GET")) } @Test fun hasBody() { val request = Request.Builder().url("http://example.com").build() val response = Response .Builder() .code(200) .message("OK") .request(request) .protocol(Protocol.HTTP_2) .build()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.5K bytes - Click Count (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/model/ReleasedVersion.kt
*/ package gradlebuild.identity.model import org.gradle.util.GradleVersion import java.text.SimpleDateFormat import java.util.Date import java.util.TimeZone data class ReleasedVersion(val version: String, val buildTime: String) { fun gradleVersion() = GradleVersion.version(version) fun buildTimeStamp(): Date = SimpleDateFormat("yyyyMMddHHmmssZ").apply { timeZone = TimeZone.getTimeZone("UTC") }.parse(buildTime)
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Sat Sep 30 16:17:28 GMT 2023 - 1K bytes - Click Count (0)