- Sort Score
- Num 10 results
- Language All
Results 111 - 120 of 707 for fun (0.03 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt
} @Synchronized private fun checkNotClosed() { check(!closed) { "cache is closed" } } /** Force buffered operations to the filesystem. */ @Synchronized @Throws(IOException::class) override fun flush() { if (!initialized) return checkNotClosed() trimToSize() journalWriter!!.flush() } @Synchronized fun isClosed(): Boolean = closed
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed May 28 23:28:25 GMT 2025 - 34.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RecordingExecutor.kt
} throw AssertionError("No such job: $url") } override fun shutdown() { shutdown = true } override fun shutdownNow(): List<Runnable> = throw UnsupportedOperationException() override fun isShutdown(): Boolean = shutdown override fun isTerminated(): Boolean = throw UnsupportedOperationException() override fun awaitTermination( timeout: Long, unit: TimeUnit,Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Oct 06 18:34:01 GMT 2025 - 2.2K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RealInterceptorChain.kt
timeout: Int, unit: TimeUnit, ): Interceptor.Chain { check(exchange == null) { "Timeouts can't be adjusted in a network interceptor" } return copy(writeTimeoutMillis = checkDuration("writeTimeout", timeout.toLong(), unit)) } override fun call(): Call = call override fun request(): Request = request @Throws(IOException::class)Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 4.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
} } @Test fun recoverFromOneInternalErrorRequiresNewConnection() { recoverFromOneHttp2ErrorRequiresNewConnection(ErrorCode.INTERNAL_ERROR) } @Test fun recoverFromOneCancelRequiresNewConnection() { recoverFromOneHttp2ErrorRequiresNewConnection(ErrorCode.CANCEL) } private fun recoverFromOneHttp2ErrorRequiresNewConnection(errorCode: ErrorCode?) {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Nov 01 12:18:11 GMT 2025 - 67.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/idn/IdnaMappingTableTest.kt
} } @Test fun deviations() { assertThat("ß".map()).isEqualTo("ß") assertThat("ς".map()).isEqualTo("ς") assertThat("\u200c".map()).isEqualTo("\u200c") assertThat("\u200d".map()).isEqualTo("\u200d") } @Test fun ignored() { assertThat("\u200b".map()).isEqualTo("") assertThat("\ufeff".map()).isEqualTo("") } @Test fun disallowed() {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 8.9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Settings.kt
fun isSet(id: Int): Boolean { val bit = 1 shl id return set and bit != 0 } /** Returns the value for the setting `id`, or 0 if unset. */ operator fun get(id: Int): Int = values[id] /** Returns the number of settings that have values assigned. */ fun size(): Int = Integer.bitCount(set) // TODO: honor this setting. fun getEnablePush(defaultValue: Boolean): Boolean {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 3.8K bytes - Click Count (0) -
build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportWorkAction.kt
private interface VersionsToIncubatingCollector { fun collectFrom(sourceFile: File): VersionsToIncubating } private class CompositeVersionsToIncubatingCollector( private val collectors: List<VersionsToIncubatingCollector> ) : VersionsToIncubatingCollector { override fun collectFrom(sourceFile: File): VersionsToIncubating = collectorsCreated: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Jun 02 09:57:54 GMT 2025 - 14.1K bytes - Click Count (0) -
okhttp-idna-mapping-table/src/test/kotlin/okhttp3/internal/idn/MappingTablesTest.kt
) } @Test fun simplifyCanonicalizesType() { assertThat( mergeAdjacentRanges( listOf( Mapping(0x0000, 0x002c, TYPE_DISALLOWED_STD3_VALID, ByteString.EMPTY), ), ), ).containsExactly( Mapping(0x0000, 0x002c, TYPE_VALID, ByteString.EMPTY), ) } @Test fun simplifyCombinesCanonicalEquivalent() { assertThat(
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 6.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt
* https://github.com/square/okhttp/issues/8078 */ @Test fun `inflate returns finished before bytesRead reaches input length`() { val inflater = MessageInflater(false) val message = "53621260020000".decodeHex() assertThat(inflater.inflate(message)).isEqualTo("22021002".decodeHex()) } @Test fun `deflate golden value`() { val deflater = MessageDeflater(false)Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Sep 21 06:26:07 GMT 2025 - 6.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/DispatcherTest.kt
.build() @BeforeEach fun setUp() { dispatcher.maxRequests = 20 dispatcher.maxRequestsPerHost = 10 eventRecorder.forbidLock(dispatcher) } @Test fun maxRequestsZero() { assertFailsWith<IllegalArgumentException> { dispatcher.maxRequests = 0 } } @Test fun maxPerHostZero() { assertFailsWith<IllegalArgumentException> {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 15.8K bytes - Click Count (0)