Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for percentDecode (0.23 sec)

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

      fun size(): Int = size
    
      fun encodedName(index: Int): String = encodedNames[index]
    
      fun name(index: Int): String = encodedName(index).percentDecode(plusIsSpace = true)
    
      fun encodedValue(index: Int): String = encodedValues[index]
    
      fun value(index: Int): String = encodedValue(index).percentDecode(plusIsSpace = true)
    
      override fun contentType(): MediaType = CONTENT_TYPE
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

              )
          }
    
        fun build(): HttpUrl {
          @Suppress("UNCHECKED_CAST") // percentDecode returns either List<String?> or List<String>.
          return HttpUrl(
            scheme = scheme ?: throw IllegalStateException("scheme == null"),
            username = encodedUsername.percentDecode(),
            password = encodedPassword.percentDecode(),
            host = host ?: throw IllegalStateException("host == null"),
    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/main/kotlin/okhttp3/internal/url/-Url.kt

        encodeSet = encodeSet,
        alreadyEncoded = alreadyEncoded,
        strict = strict,
        plusIsSpace = plusIsSpace,
        unicodeAllowed = unicodeAllowed,
      )
    }
    
    internal fun String.percentDecode(
      pos: Int = 0,
      limit: Int = length,
      plusIsSpace: Boolean = false,
    ): String {
      for (i in pos until limit) {
        val c = this[i]
        if (c == '%' || c == '+' && plusIsSpace) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

      }
    
      @Test
      fun decodeEmptyPathSegments() {
        assertThat(parse("http://host/").pathSegments).containsExactly("")
      }
    
      @Test
      fun percentDecode() {
        assertThat(parse("http://host/%00").pathSegments).containsExactly("\u0000")
        assertThat(parse("http://host/a/%E2%98%83/c").pathSegments)
          .containsExactly("a", "\u2603", "c")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  5. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/HttpUrl$Companion;->defaultPort(Ljava/lang/String;)I
    HSPLokhttp3/HttpUrl$Companion;->percentDecode$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IIZI)Ljava/lang/String;
    HSPLokhttp3/HttpUrl;-><clinit>()V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
Back to top