- Sort Score
- Result 10 results
- Languages All
Results 11 - 19 of 19 for 60 (0.14 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt
if (ageMillis + minFreshMillis >= freshMillis) { builder.addHeader("Warning", "110 HttpURLConnection \"Response is stale\"") } val oneDayMillis = 24 * 60 * 60 * 1000L if (ageMillis > oneDayMillis && isFreshnessLifetimeHeuristic()) { builder.addHeader("Warning", "113 HttpURLConnection \"Heuristic expiration\"") }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:24:48 GMT 2024 - 12K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
.cache(cache) .build() server.enqueue( MockResponse( headers = headersOf("cache-control", "max-age=60"), body = "ABCD", ), ) server.enqueue( MockResponse( headers = headersOf("cache-control", "max-age=60"), body = "EFGH", ), ) val call1 = client.newCall(Request(server.url("/"))) val response1 = call1.execute()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 75.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Dispatcher.kt
get() = this.withLock { if (executorServiceOrNull == null) { executorServiceOrNull = ThreadPoolExecutor( 0, Int.MAX_VALUE, 60, TimeUnit.SECONDS, SynchronousQueue(), threadFactory("$okHttpName Dispatcher", false), ) } return executorServiceOrNull!! }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CookieTest.kt
.isEqualTo(MAX_DATE) } @Test fun invalidMinute() { assertThat(parse(url, "a=b; Expires=Thu, 01 Jan 1970 00:60:00 GMT")!!.expiresAt) .isEqualTo(MAX_DATE) } @Test fun invalidSecond() { assertThat(parse(url, "a=b; Expires=Thu, 01 Jan 1970 00:00:60 GMT")!!.expiresAt) .isEqualTo(MAX_DATE) } @Test fun domainMatches() { val cookie = parse(url, "a=b; domain=example.com")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 24.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/OkHttpClientTest.kt
assertThat(client.readTimeoutMillis).isEqualTo(10000) assertThat(client.writeTimeoutMillis).isEqualTo(10000) assertThat(client.pingIntervalMillis).isEqualTo(0) assertThat(client.webSocketCloseTimeout).isEqualTo(60_000) } @Test fun webSocketDefaults() { val client = clientTestRule.newClient() assertThat(client.minWebSocketMessageToCompress).isEqualTo(1024) } @Test fun timeoutValidRange() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 31 17:16:15 GMT 2024 - 13.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt
* The close timeout is the maximum amount of time after the client calls [WebSocket.close] to * wait for a graceful shutdown. If the server doesn't respond the web socket will be canceled. * The default value is 60 seconds. */ fun webSocketCloseTimeout( timeout: Long, unit: TimeUnit, ) = apply { webSocketCloseTimeout = checkDuration("webSocketCloseTimeout", timeout, unit) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:21:33 GMT 2024 - 52K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
@Test fun cacheHit() { server.enqueue( MockResponse( headers = headersOf( "ETag", "v1", "Cache-Control", "max-age=60", "Vary", "Accept-Charset", ), body = "A", ), ) client = client.newBuilder() .cache(cache) .build()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 142.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt
headerEntries(":method", "GET"), ) } @Test fun readLiteralHeaderWithIncrementalIndexingStaticName() { bytesIn.writeByte(0x7d) // == Literal indexed == // Indexed name (idx = 60) -> "www-authenticate" bytesIn.writeByte(0x05) // Literal value (len = 5) bytesIn.writeUtf8("Basic") hpackReader!!.readHeaders() assertThat(hpackReader!!.getAndResetHeaderList())
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 38.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
listOf( FakeFileSystem().apply { emulateUnix() } to false, FileSystem.SYSTEM to TestUtil.windows, FakeFileSystem().apply { emulateWindows() } to true, ) } @Timeout(60) @Tag("Slow") class DiskLruCacheTest { private lateinit var filesystem: FaultyFileSystem private var windows: Boolean = false @TempDir lateinit var cacheDirFile: File lateinit var cacheDir: Path
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 75.8K bytes - Viewed (0)