Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for cacheResponse (0.2 sec)

  1. docs/recipes.md

     [CacheResponseJava]: https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/CacheResponse.java
     [CacheResponseKotlin]: https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/kt/CacheResponse.kt
     [CancelCallJava]: https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/CancelCall.java
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

        /**
         * Returns true if none of the Vary headers have changed between [cachedRequest] and
         * [newRequest].
         */
        fun varyMatches(
          cachedResponse: Response,
          cachedRequest: Headers,
          newRequest: Request,
        ): Boolean =
          cachedResponse.headers.varyFields().none {
            cachedRequest.values(it) != newRequest.headers(it)
          }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  3. okhttp/api/jvm/okhttp.api

    	public final fun -deprecated_sentRequestAtMillis ()J
    	public final fun body ()Lokhttp3/ResponseBody;
    	public final fun cacheControl ()Lokhttp3/CacheControl;
    	public final fun cacheResponse ()Lokhttp3/Response;
    	public final fun challenges ()Ljava/util/List;
    	public fun close ()V
    	public final fun code ()I
    	public final fun handshake ()Lokhttp3/Handshake;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  4. okhttp/api/android/okhttp.api

    	public final fun -deprecated_sentRequestAtMillis ()J
    	public final fun body ()Lokhttp3/ResponseBody;
    	public final fun cacheControl ()Lokhttp3/CacheControl;
    	public final fun cacheResponse ()Lokhttp3/Response;
    	public final fun challenges ()Ljava/util/List;
    	public fun close ()V
    	public final fun code ()I
    	public final fun handshake ()Lokhttp3/Handshake;
    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/CacheTest.kt

        val request = Request(server.url("/abc"))
    
        val response = testBasicCachingRules(request)
    
        assertThat(response.request.url).isEqualTo(request.url)
        assertThat(response.cacheResponse!!.request.url).isEqualTo(request.url)
      }
    
      @Test
      fun postWithOverrideResponse() {
        val url = server.url("/abc?token=123")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
Back to top