This commit is contained in:
GG Bond authored and Vladimir Dostoyevskiy committed 2023-12-04 00:46:58 +08:00
1 parent d469a8404c
commit b036aeef23
2 files changed
+2 -2

No files matched your search

@@ -27,7 +27,7 @@ val cronetHttpClient: CronetEngine = CronetEngine.Builder(appCtx).apply {
// Cache Quic hint only since the real cache mechanism should on Ktor layer
val cache = (appCtx.cacheDir.toOkioPath() / "http_cache").toFile().apply { mkdirs() }
setStoragePath(cache.absolutePath)
enableHttpCache(CronetEngine.Builder.HTTP_CACHE_DISK_NO_HTTP, 1024)
enableHttpCache(CronetEngine.Builder.HTTP_CACHE_DISK_NO_HTTP, 4096)
}.build()
class CronetRequest {
@@ -29,7 +29,7 @@ val cronetHttpClient: HttpEngine = HttpEngine.Builder(appCtx).apply {
// Cache Quic hint only since the real cache mechanism should on Ktor layer
val cache = (appCtx.cacheDir.toOkioPath() / "http_cache").toFile().apply { mkdirs() }
setStoragePath(cache.absolutePath)
setEnableHttpCache(HttpEngine.Builder.HTTP_CACHE_DISK_NO_HTTP, 1024)
setEnableHttpCache(HttpEngine.Builder.HTTP_CACHE_DISK_NO_HTTP, 4096)
}.build()
class CronetRequest {