Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 25 of 25 for evictAll (0.04 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

            .build()
        val response = get(url)
        assertThat(response.body.string()).isEqualTo(entryBody)
        assertThat(response.header("Content-Length")).isEqualTo("3")
      }
    
      @Test
      fun evictAll() {
        server.enqueue(
          MockResponse
            .Builder()
            .addHeader("Cache-Control: max-age=60")
            .body("A")
            .build(),
        )
        server.enqueue(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
  2. okhttp/api/jvm/okhttp.api

    	public fun <init> (Lokio/FileSystem;Lokio/Path;J)V
    	public fun close ()V
    	public final fun delete ()V
    	public final fun directory ()Ljava/io/File;
    	public final fun directoryPath ()Lokio/Path;
    	public final fun evictAll ()V
    	public fun flush ()V
    	public final fun hitCount ()I
    	public final fun initialize ()V
    	public final fun isClosed ()Z
    	public static final fun key (Lokhttp3/HttpUrl;)Ljava/lang/String;
    	public final fun maxSize ()J
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

      }
    
      /**
       * Deletes all stored values from the cache. In-flight edits will complete normally but their
       * values will not be stored.
       */
      @Synchronized
      @Throws(IOException::class)
      fun evictAll() {
        initialize()
        // Copying for concurrent iteration.
        for (entry in lruEntries.values.toTypedArray()) {
          removeEntry(entry)
        }
        mostRecentTrimFailed = false
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  4. okhttp/api/android/okhttp.api

    	public fun <init> (Lokio/FileSystem;Lokio/Path;J)V
    	public fun close ()V
    	public final fun delete ()V
    	public final fun directory ()Ljava/io/File;
    	public final fun directoryPath ()Lokio/Path;
    	public final fun evictAll ()V
    	public fun flush ()V
    	public final fun hitCount ()I
    	public final fun initialize ()V
    	public final fun isClosed ()Z
    	public static final fun key (Lokhttp3/HttpUrl;)Ljava/lang/String;
    	public final fun maxSize ()J
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

        // Connection is not pooled.
        assertThat(server.takeRequest().exchangeIndex).isEqualTo(0)
      }
    
      @Test
      fun endOfStreamResponseIsNotPooled() {
        client.connectionPool.evictAll()
        server.enqueue(
          MockResponse
            .Builder()
            .body("{}")
            .clearHeaders()
            .onResponseEnd(ShutdownConnection)
            .build(),
        )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
Back to top