- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for Entry (0.14 sec)
-
docs/changelogs/changelog_4x.md
OkHttp 4.x Change Log ===================== ## Version 4.12.0 _2023-10-16_ * Fix: Don't hang taking headers for HTTP 103 responses. * Fix: Recover gracefully when a cache entry's certificate is corrupted. * Fix: Fail permanently when there's a failure loading the bundled public suffix database. This is the dataset that powers `HttpUrl.topPrivateDomain()`.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 17 13:25:31 GMT 2024 - 25.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
val requestB = server.takeRequest() assertThat(requestB.sequenceNumber).isEqualTo(1) } /** * The RFC is unclear in this regard as it only specifies that this should invalidate the cache * entry (if any). */ @Test fun bodyPermittedOnDelete() { server.enqueue(MockResponse()) val response = getResponse( Request.Builder() .url(server.url("/"))
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) -
okhttp/src/main/kotlin/okhttp3/Cache.kt
return null // Give up because the cache cannot be read. } val entry: Entry = try { Entry(snapshot.getSource(ENTRY_METADATA)) } catch (_: IOException) { snapshot.closeQuietly() return null } val response = entry.response(snapshot) if (!entry.matches(request, response)) { response.body.closeQuietly() return null }
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/internal/http2/HpackTest.kt
var entry = hpackReader!!.dynamicTable[readerHeaderTableLength() - 3]!! checkEntry(entry, "custom-key", "custom-value", 54) // [ 2] (s = 53) cache-control: no-cache entry = hpackReader!!.dynamicTable[readerHeaderTableLength() - 2]!! checkEntry(entry, "cache-control", "no-cache", 53) // [ 3] (s = 57) :authority: www.example.com
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/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
source.read(sink, byteCount) } catch (e: IOException) { carrier.noNewExchanges() responseBodyComplete() throw e } } /** * Closes the cache entry and makes the socket available for reuse. This should be invoked when * the end of the body has been reached. */ fun responseBodyComplete() { if (state == STATE_CLOSED) return
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 16.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt
} var entry: Entry? = lruEntries[key] if (entry == null) { entry = Entry(key) lruEntries[key] = entry } when { secondSpace != -1 && firstSpace == CLEAN.length && line.startsWith(CLEAN) -> { val parts = line.substring(secondSpace + 1) .split(' ') entry.readable = true entry.currentEditor = null
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 34.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/WebPlatformToAsciiTest.kt
val failures = mutableListOf<Throwable>() for (entry in list) { var failure: Throwable? = null try { testToAscii(entry.input!!, entry.output, entry.comment) } catch (e: Throwable) { failure = e } if (entry.input in knownFailures) { if (failure == null) failures += AssertionError("known failure didn't fail: $entry") } else {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
fun recoverFromInitializationFailure(parameters: Pair<FileSystem, Boolean>) { setUp(parameters.first, parameters.second) // Add an uncommitted entry. This will get detected on initialization, and the cache will // attempt to delete the file. Do not explicitly close the cache here so the entry is left as // incomplete. val creator = cache.edit("k1")!! creator.newSink(0).buffer().use { it.writeUtf8("Hello") }
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/internal/idn/IdnaMappingTable.kt
* prefix are called a 'section'. There are 128 code points per section. * * Ranges Data (32,612 bytes) * ========================== * * Each entry is 4 bytes, and represents a _range_ of code points that all share a common 14-bit * prefix. Entries are sorted by their complete code points. * * The 4 bytes are named b0, b1, b2 and b3. We also define these supplemental values:
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Apr 02 11:39:58 GMT 2024 - 9K bytes - Viewed (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt
mergeAdjacentDeltaMappedRanges(sectionList) } return result.toMap() } /** * Modifies [ranges] to combine any adjacent [MappedRange.InlineDelta] of same size to single entry. * @returns same instance of [ranges] for convenience */ internal fun mergeAdjacentDeltaMappedRanges(ranges: MutableList<MappedRange>): MutableList<MappedRange> { var i = 0 while (i < ranges.size) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 8.2K bytes - Viewed (0)