- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for Expires (0.18 sec)
-
okhttp/src/test/java/okhttp3/CookieTest.kt
/** If a cookie incorrectly defines multiple 'Expires' attributes, the last one defined wins. */ @Test fun lastExpiresAtWins() { assertThat( parseCookie( 0L, url, "a=b; " + "Expires=Thu, 01 Jan 1970 00:00:02 GMT; " + "Expires=Thu, 01 Jan 1970 00:00:04 GMT; " + "Expires=Thu, 01 Jan 1970 00:00:01 GMT; " + "Expires=Thu, 01 Jan 1970 00:00:03 GMT",
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/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt
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/CacheTest.kt
.addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) .body("ABC") .build(), ) server.enqueue( MockResponse.Builder() .addHeader("Last-Modified: " + formatDate(-5, TimeUnit.MINUTES)) .addHeader("Expires: " + formatDate(2, TimeUnit.HOURS)) .body("DEF") .build(), )
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 108.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt
formatDate(-1, TimeUnit.HOURS)!!, "Expires", formatDate(1, TimeUnit.HOURS)!!, ), body = "ABC.1", ), ) server.enqueue( MockResponse( headers = headersOf( "Last-Modified", formatDate(-1, TimeUnit.HOURS)!!, "Expires", formatDate(1, TimeUnit.HOURS)!!, ),
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 6K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/Cookie.kt
/** * Returns the time that this cookie expires, in the same format as [System.currentTimeMillis]. * This is December 31, 9999 if the cookie is not [persistent], in which case it will expire at the * end of the current session. * * This may return a value less than the current time, in which case the cookie is already * expired. Webservers may return expired cookies as a mechanism to delete previously set cookies
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:12:05 GMT 2024 - 23.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CookiesTest.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt
Header("content-range", ""), Header("content-type", ""), Header("cookie", ""), Header("date", ""), Header("etag", ""), Header("expect", ""), Header("expires", ""), Header("from", ""), Header("host", ""), Header("if-match", ""), Header("if-modified-since", ""), Header("if-none-match", ""), Header("if-range", ""),
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 22.5K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/CallTest.kt
fun responseCookies() { server.enqueue( MockResponse( headers = headersOf( "Set-Cookie", "a=b; Expires=Thu, 01 Jan 1970 00:00:00 GMT", "Set-Cookie", "c=d; Expires=Fri, 02 Jan 1970 23:59:59 GMT; path=/bar; secure", ), ), ) val cookieJar = RecordingCookieJar() client = client.newBuilder()
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/connection/ConnectionPoolTest.kt
val pool = routePlanner.pool // Add a connection to the pool that won't expire for a while routePlanner.defaultConnectionIdleAtNanos = expireLater setPolicy(pool, address, ConnectionPool.AddressPolicy(1)) assertThat(pool.connectionCount()).isEqualTo(1) // All other connections created will expire sooner routePlanner.defaultConnectionIdleAtNanos = expireSooner
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 24 04:40:49 GMT 2024 - 12.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
.addHeader("icy-url:http://www.A2Rradio.com") .addHeader("Server: Icecast 2.3.3-kh8") .addHeader("Cache-Control: no-cache") .addHeader("Pragma: no-cache") .addHeader("Expires: Mon, 26 Jul 1997 05:00:00 GMT") .addHeader("icy-metaint:16000") .body("mp3 data") .build(), ) val response = getResponse(newRequest("/"))
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0)