Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for noStore (0.23 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt

        .onlyIfCached()
        .maxStale(Int.MAX_VALUE.seconds)
        .build()
    
    internal fun CacheControl.Builder.commonBuild(): CacheControl {
      return CacheControl(
        noCache = noCache,
        noStore = noStore,
        maxAgeSeconds = maxAgeSeconds,
        sMaxAgeSeconds = -1,
        isPrivate = false,
        isPublic = false,
        mustRevalidate = false,
        maxStaleSeconds = maxStaleSeconds,
        minFreshSeconds = minFreshSeconds,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CacheControlTest.kt

      fun emptyBuilderIsEmpty() {
        val cacheControl = CacheControl.Builder().build()
        assertThat(cacheControl.toString()).isEqualTo("")
        assertThat(cacheControl.noCache).isFalse()
        assertThat(cacheControl.noStore).isFalse()
        assertThat(cacheControl.maxAgeSeconds).isEqualTo(-1)
        assertThat(cacheControl.sMaxAgeSeconds).isEqualTo(-1)
        assertThat(cacheControl.isPrivate).isFalse()
        assertThat(cacheControl.isPublic).isFalse()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheControlJvmTest.kt

    import org.junit.jupiter.api.Test
    
    class CacheControlJvmTest {
      @Test
      @Throws(Exception::class)
      fun completeBuilder() {
        val cacheControl =
          CacheControl.Builder()
            .noCache()
            .noStore()
            .maxAge(1, TimeUnit.SECONDS)
            .maxStale(2, TimeUnit.SECONDS)
            .minFresh(3, TimeUnit.SECONDS)
            .onlyIfCached()
            .noTransform()
            .immutable()
            .build()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/CacheControl.kt

        level = DeprecationLevel.ERROR,
      )
      fun noCache(): Boolean = noCache
    
      @JvmName("-deprecated_noStore")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "noStore"),
        level = DeprecationLevel.ERROR,
      )
      fun noStore(): Boolean = noStore
    
      @JvmName("-deprecated_maxAgeSeconds")
      @Deprecated(
        message = "moved to val",
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 10K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

              return false
            }
          }
    
          // A 'no-store' directive on request or response prevents the response from being cached.
          return !response.cacheControl.noStore && !request.cacheControl.noStore
        }
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

      }
    
      @Test @Disabled
      fun cacheControl() {
        val cacheControl: CacheControl = CacheControl.Builder().build()
        val noCache: Boolean = cacheControl.noCache()
        val noStore: Boolean = cacheControl.noStore()
        val maxAgeSeconds: Int = cacheControl.maxAgeSeconds()
        val sMaxAgeSeconds: Int = cacheControl.sMaxAgeSeconds()
        val mustRevalidate: Boolean = cacheControl.mustRevalidate()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

      }
    
      @Test
      fun cacheControl() {
        val cacheControl: CacheControl = CacheControl.Builder().build()
        val noCache: Boolean = cacheControl.noCache
        val noStore: Boolean = cacheControl.noStore
        val maxAgeSeconds: Int = cacheControl.maxAgeSeconds
        val sMaxAgeSeconds: Int = cacheControl.sMaxAgeSeconds
        val mustRevalidate: Boolean = cacheControl.mustRevalidate
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  8. docs/changelogs/upgrading_to_okhttp_4.md

       proxyAuthenticator, proxySelector, socketFactory, sslSocketFactory, url
     * **Cache**: directory
     * **CacheControl**: immutable, maxAgeSeconds, maxStaleSeconds, minFreshSeconds, mustRevalidate,
       noCache, noStore, noTransform, onlyIfCached, sMaxAgeSeconds
     * **Challenge**: authParams, charset, realm, scheme
     * **CipherSuite**: javaName
     * **ConnectionSpec**: cipherSuites, supportsTlsExtensions, tlsVersions
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
  9. okhttp/api/okhttp.api

    	public final fun -deprecated_maxStaleSeconds ()I
    	public final fun -deprecated_minFreshSeconds ()I
    	public final fun -deprecated_mustRevalidate ()Z
    	public final fun -deprecated_noCache ()Z
    	public final fun -deprecated_noStore ()Z
    	public final fun -deprecated_noTransform ()Z
    	public final fun -deprecated_onlyIfCached ()Z
    	public final fun -deprecated_sMaxAgeSeconds ()I
    	public final fun immutable ()Z
    	public final fun isPrivate ()Z
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CacheTest.kt

            .body("B")
            .build(),
        )
        val request1 =
          Request.Builder()
            .url(server.url("/"))
            .cacheControl(CacheControl.Builder().noStore().build())
            .build()
        val response1 = client.newCall(request1).execute()
        assertThat(response1.body.string()).isEqualTo("A")
        val request2 =
          Request.Builder()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
Back to top