Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for queryParameterName (0.08 sec)

  1. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

      }
    
      /**
       * Returns the name of the query parameter at `index`. For example this returns `"a"`
       * for `queryParameterName(0)` on `http://host/?a=apple&b=banana`. This throws if
       * `index` is not less than the [query size][querySize].
       *
       * | URL                               | `queryParameterName(0)` | `queryParameterName(1)` |
       * | :-------------------------------- | :---------------------- | :---------------------- |
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        assertThat(url.queryParameterName(0)).isEqualTo("")
        assertThat(url.queryParameterValue(0)).isNull()
      }
    
      @Test
      fun ampersandQueryIsTwoNameValuePairsWithEmptyKeys() {
        val url =
          parse("http://host/").newBuilder()
            .query("&")
            .build()
        assertThat(url.querySize).isEqualTo(2)
        assertThat(url.queryParameterName(0)).isEqualTo("")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  3. okhttp/api/okhttp.api

    	public final fun pathSize ()I
    	public final fun port ()I
    	public final fun query ()Ljava/lang/String;
    	public final fun queryParameter (Ljava/lang/String;)Ljava/lang/String;
    	public final fun queryParameterName (I)Ljava/lang/String;
    	public final fun queryParameterNames ()Ljava/util/Set;
    	public final fun queryParameterValue (I)Ljava/lang/String;
    	public final fun queryParameterValues (Ljava/lang/String;)Ljava/util/List;
    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