Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for addPathSegment (0.13 sec)

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

          base.newBuilder()
            .addPathSegment("")
            .build().encodedPath,
        )
          .isEqualTo("/a/b/c/")
        assertThat(
          base.newBuilder()
            .addPathSegment("")
            .addPathSegment("d")
            .build().encodedPath,
        )
          .isEqualTo("/a/b/c/d")
        assertThat(
          base.newBuilder()
            .addPathSegment("..")
            .build().encodedPath,
        )
    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/test/java/okhttp3/UrlComponentEncodingTester.kt

            return path.substring(2, path.length - 2)
          }
    
          override operator fun set(
            builder: HttpUrl.Builder,
            value: String,
          ) {
            builder.addPathSegment("a${value}z")
          }
    
          override operator fun get(url: HttpUrl): String {
            val pathSegment = url.pathSegments[0]
            return pathSegment.substring(1, pathSegment.length - 1)
          }
        },
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/HttpUrlJvmTest.kt

      }
    
      @Test
      fun toUriPathSpecialCharacters() {
        val url =
          HttpUrl.Builder()
            .scheme("http")
            .host("host")
            .addPathSegment("=[]:;\"~|?#@^/$%*")
            .build()
        assertThat(url.toString())
          .isEqualTo("http://host/=[]:;%22~%7C%3F%23@%5E%2F$%25*")
        assertThat(url.toUri().toString())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     * Google search:
     *
     * ```java
     * HttpUrl url = new HttpUrl.Builder()
     *     .scheme("https")
     *     .host("www.google.com")
     *     .addPathSegment("search")
     *     .addQueryParameter("q", "polar bears")
     *     .build();
     * System.out.println(url);
     * ```
     *
     * which prints:
     *
     * ```
     * https://www.google.com/search?q=polar%20bears
     * ```
     *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        builder = builder.encodedUsername("")
        builder = builder.password("")
        builder = builder.encodedPassword("")
        builder = builder.host("")
        builder = builder.port(0)
        builder = builder.addPathSegment("")
        builder = builder.addPathSegments("")
        builder = builder.addEncodedPathSegment("")
        builder = builder.addEncodedPathSegments("")
        builder = builder.setPathSegment(0, "")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  6. okhttp/api/okhttp.api

    	public final fun addEncodedPathSegments (Ljava/lang/String;)Lokhttp3/HttpUrl$Builder;
    	public final fun addEncodedQueryParameter (Ljava/lang/String;Ljava/lang/String;)Lokhttp3/HttpUrl$Builder;
    	public final fun addPathSegment (Ljava/lang/String;)Lokhttp3/HttpUrl$Builder;
    	public final fun addPathSegments (Ljava/lang/String;)Lokhttp3/HttpUrl$Builder;
    	public final fun addQueryParameter (Ljava/lang/String;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