Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for cacheUrlOverride (1.7 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

         *
         * Note that POST requests will not be sent to the server if this URL is set
         * and matches a cached response.
         */
        fun cacheUrlOverride(cacheUrlOverride: HttpUrl?) =
          apply {
            this.cacheUrlOverride = cacheUrlOverride
          }
    
        /**
         * Configures this request's body to be compressed when it is transmitted. This also adds the
         * 'Content-Encoding: gzip' header.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 13.1K bytes
    - Viewed (1)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

      fun postWithOverrideResponse() {
        val url = server.url("/abc?token=123")
        val cacheUrlOverride = url.newBuilder().removeAllQueryParameters("token").build()
    
        val request =
          Request
            .Builder()
            .url(url)
            .method("POST", "XYZ".toRequestBody())
            .cacheUrlOverride(cacheUrlOverride)
            .build()
    
        val response = testBasicCachingRules(request)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
  3. okhttp/api/jvm/okhttp.api

    	public final fun body ()Lokhttp3/RequestBody;
    	public final fun cacheControl ()Lokhttp3/CacheControl;
    	public final fun cacheUrlOverride ()Lokhttp3/HttpUrl;
    	public final fun header (Ljava/lang/String;)Ljava/lang/String;
    	public final fun headers ()Lokhttp3/Headers;
    	public final fun headers (Ljava/lang/String;)Ljava/util/List;
    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 body ()Lokhttp3/RequestBody;
    	public final fun cacheControl ()Lokhttp3/CacheControl;
    	public final fun cacheUrlOverride ()Lokhttp3/HttpUrl;
    	public final fun header (Ljava/lang/String;)Ljava/lang/String;
    	public final fun headers ()Lokhttp3/Headers;
    	public final fun headers (Ljava/lang/String;)Ljava/util/List;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
Back to top