- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 74 for cache (0.15 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt
* the cache; the cache may delete or overwrite files from its directory. It is an error for * multiple processes to use the same cache directory at the same time. * * This cache limits the number of bytes that it will store on the filesystem. When the number of * stored bytes exceeds the limit, the cache will remove entries in the background until the limit * is satisfied. The limit is not strict: the cache may temporarily exceed it while waiting for
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/RequestTest.kt
.url("https://square.com") .build() assertThat(request.headers("Cache-Control")).containsExactly("no-cache") assertThat(request.cacheControl.noCache).isTrue() } @Test fun emptyCacheControlClearsAllCacheControlHeaders() { val request = Request.Builder() .header("Cache-Control", "foo") .cacheControl(CacheControl.Builder().build())
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 16.4K bytes - Viewed (0) -
CHANGELOG.md
of OkHttp 5. * Breaking: Reorder the parameters in the Cache constructor that was introduced in 5.0.0-alpha.3. * New: `Request.Builder.cacheUrlOverride()` customizes the cache key used for a request. This can be used to make canonical URLs for the cache that omit insignificant query parameters or other irrelevant data. This feature may be used with `POST` requests to cache their responses. In such cases the
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 18 01:31:39 GMT 2024 - 21.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt
import okhttp3.internal.toNonNegativeInt /** * Given a request and cached response, this figures out whether to use the network, the cache, or * both. * * Selecting a cache strategy may add conditions to the request (like the "If-Modified-Since" header * for conditional GETs) or warnings to the cached response (if the cached data is potentially * stale). */ class CacheStrategy internal constructor(
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-android/src/main/baseline-prof.txt
Lokhttp3/internal/_UtilJvmKt; Lokhttp3/internal/cache/CacheInterceptor$Companion; Lokhttp3/internal/cache/CacheInterceptor$cacheWritingResponse$cacheWritingSource$1; Lokhttp3/internal/cache/CacheInterceptor; Lokhttp3/internal/cache/CacheRequest; Lokhttp3/internal/cache/CacheStrategy; Lokhttp3/internal/cache/DiskLruCache$Editor; Lokhttp3/internal/cache/DiskLruCache$Entry; Lokhttp3/internal/cache/DiskLruCache$Snapshot;
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Mar 21 11:22:00 GMT 2022 - 127.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/EventListenerTest.kt
} private fun enableCache(): Cache? { cache = makeCache() client = client.newBuilder().cache(cache).build() return cache } private fun makeCache(): Cache { val cacheDir = File.createTempFile("cache-", ".dir") cacheDir.delete() return Cache(cacheDir, (1024 * 1024).toLong()) } companion object {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 56.9K bytes - Viewed (0) -
native-image-tests/src/main/kotlin/okhttp3/TestRegistration.kt
registerParamProvider(access, "okhttp3.internal.http.CancelModelParamProvider") registerParamProvider(access, "okhttp3.internal.cache.FileSystemParamProvider") registerParamProvider(access, "okhttp3.internal.http2.HttpOverHttp2Test\$ProtocolParamProvider") registerParamProvider(access, "okhttp3.internal.cache.FileSystemParamProvider") registerParamProvider(access, "okhttp3.WebPlatformUrlTest\$TestDataParamProvider") }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt
import java.util.concurrent.Callable import java.util.concurrent.Executors import kotlin.test.assertFailsWith import okhttp3.TestUtil.threadFactory import okhttp3.internal.cache2.Relay.Companion.edit import okhttp3.internal.cache2.Relay.Companion.read import okio.Buffer import okio.ByteString import okio.ByteString.Companion.encodeUtf8 import okio.Pipe import okio.Source import okio.buffer import okio.source
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 8.1K bytes - Viewed (0) -
regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt
it.mkdirs() } val engine = HttpEngine.Builder(context) .setEnableBrotli(true) .setStoragePath(cacheDir.path) .setEnableHttpCache(HttpEngine.Builder.HTTP_CACHE_DISK, 10_000_000) .setConnectionMigrationOptions( ConnectionMigrationOptions.Builder() .setDefaultNetworkMigration(ConnectionMigrationOptions.MIGRATION_OPTION_ENABLED)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 24 13:19:43 GMT 2024 - 6.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/EventListener.kt
} /** * Invoked when a call fails due to cache rules. * For example, we're forbidden from using the network and the cache is insufficient */ open fun satisfactionFailure( call: Call, response: Response, ) { } /** * Invoked when a result is served from the cache. The Response provided is the top level
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 15.2K bytes - Viewed (0)