Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for removeAllQueryParameters (0.25 sec)

  1. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

      }
    
      @Test
      fun composeQueryRemoveQueryParameter() {
        val url =
          parse("http://host/").newBuilder()
            .addQueryParameter("a+=& b", "c+=& d")
            .removeAllQueryParameters("a+=& b")
            .build()
        assertThat(url.toString()).isEqualTo("http://host/")
        assertThat(url.queryParameter("a+=& b")).isNull()
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

              plusIsSpace = true,
            ),
          )
        }
    
        fun setQueryParameter(
          name: String,
          value: String?,
        ) = apply {
          removeAllQueryParameters(name)
          addQueryParameter(name, value)
        }
    
        fun setEncodedQueryParameter(
          encodedName: String,
          encodedValue: String?,
        ) = apply {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        builder = builder.addEncodedQueryParameter("", "")
        builder = builder.setQueryParameter("", "")
        builder = builder.setEncodedQueryParameter("", "")
        builder = builder.removeAllQueryParameters("")
        builder = builder.removeAllEncodedQueryParameters("")
        builder = builder.fragment("")
        builder = builder.encodedFragment("")
        val httpUrl: HttpUrl = builder.build()
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheTest.kt

      }
    
      @Test
      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()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  5. okhttp/api/okhttp.api

    	public final fun query (Ljava/lang/String;)Lokhttp3/HttpUrl$Builder;
    	public final fun removeAllEncodedQueryParameters (Ljava/lang/String;)Lokhttp3/HttpUrl$Builder;
    	public final fun removeAllQueryParameters (Ljava/lang/String;)Lokhttp3/HttpUrl$Builder;
    	public final fun removePathSegment (I)Lokhttp3/HttpUrl$Builder;
    	public final fun scheme (Ljava/lang/String;)Lokhttp3/HttpUrl$Builder;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
Back to top