- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for partial (0.33 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt
response: Response, request: Request, ): Boolean { // Always go to network for uncacheable response codes (RFC 7231 section 6.1), This // implementation doesn't support caching partial content. when (response.code) { HTTP_OK, HTTP_NOT_AUTHORITATIVE, HTTP_NO_CONTENT, HTTP_MULT_CHOICE, HTTP_MOVED_PERM, HTTP_NOT_FOUND,
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
assertCached(false, 201) assertCached(false, 202) assertCached(true, 203) assertCached(true, 204) assertCached(false, 205) assertCached(false, 206) // Electing to not cache partial responses assertCached(false, 207) assertCached(true, 300) assertCached(true, 301) assertCached(true, 302) assertCached(false, 303) assertCached(false, 304) assertCached(false, 305)
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/HttpUrlTest.kt
assertThat(parse("http://github.com/%%30%30").pathSegments) .containsExactly("%00") } @Test fun malformedUtf8Encoding() { // Replace a partial UTF-8 sequence with the Unicode replacement character. assertThat(parse("http://host/a/%E2%98x/c").pathSegments) .containsExactly("a", "\ufffdx", "c") } @Test fun incompleteUrlComposition() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 67.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/MediaTypeTest.kt
assertEquals("abcd", mediaType.parameter("boundary")) assertEquals("abcd", mediaType.parameter("BOUNDARY")) } @Test fun testMultipleParameters() { val mediaType = parse("Message/Partial; number=2; total=3; id=\"oc=******@****.***\"") assertEquals("2", mediaType.parameter("number")) assertEquals("3", mediaType.parameter("total")) assertEquals("oc=******@****.***", mediaType.parameter("id"))
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 7.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/MultipartReaderTest.kt
), ) assertThat(partAbc.body.readUtf8()).isEqualTo("abcd\r\nefgh") val partIjk = parts.nextPart()!! assertThat(partIjk.headers).isEqualTo( headersOf( "Content-Type", "text/plain; charset=utf-8", "Content-ID", "ijk", ), ) assertThat(partIjk.body.readUtf8()).isEqualTo("ijkl\r\nmnop\r\n") assertThat(parts.nextPart()).isNull() }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cache.kt
* * The best way to improve the cache hit rate is by configuring the web server to return cacheable * responses. Although this client honors all [HTTP/1.1 (RFC 7234)][rfc_7234] cache headers, it * doesn't cache partial responses. * * ## Force a Network Response * * In some situations, such as after a user clicks a 'refresh' button, it may be necessary to skip
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 26.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
val gzippedBody = gzip("abcabcabc") // Enqueue a gzipped response. Our request isn't expecting it, but that's okay. server.enqueue( MockResponse.Builder() .code(HttpURLConnection.HTTP_PARTIAL) .body(gzippedBody) .addHeader("Content-Encoding: gzip") .addHeader("Content-Range: bytes 0-" + (gzippedBody.size - 1)) .build(), ) // Make a range request.
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-idna-mapping-table/src/main/resources/okhttp3/internal/idna/IdnaMappingTable.txt
10B40..10B55 ; valid # 5.2 INSCRIPTIONAL PARTHIAN LETTER ALEPH..INSCRIPTIONAL PARTHIAN LETTER TAW 10B56..10B57 ; disallowed # NA <reserved-10B56>..<reserved-10B57> 10B58..10B5F ; valid ; ; NV8 # 5.2 INSCRIPTIONAL PARTHIAN NUMBER ONE..INSCRIPTIONAL PARTHIAN NUMBER ONE THOUSAND
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Feb 10 11:25:47 GMT 2024 - 854.1K bytes - Viewed (2) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
filesystem.setFaultyDelete(cacheDir / "a.1", true) taskFaker.runNextTask() // Confirm the partial snapshot is not returned. assertThat(cache["a"]).isNull() // Confirm we prevent edits after a trim failure. assertThat(cache.edit("a")).isNull() // Confirm the partial snapshot is not returned after a successful trim.
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) -
okhttp/src/main/kotlin/okhttp3/Cookie.kt
} // Convert two-digit years into four-digit years. 99 becomes 1999, 15 becomes 2015. if (year in 70..99) year += 1900 if (year in 0..69) year += 2000 // If any partial is omitted or out of range, return -1. The date is impossible. Note that leap // seconds are not supported by this syntax. require(year >= 1601) require(month != -1) require(dayOfMonth in 1..31)
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)