Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for reencodeForUri (0.14 sec)

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

       * web server. For this reason the [URI class][URI] and this method should be avoided.
       */
      @JvmName("uri")
      fun toUri(): URI {
        val uri = newBuilder().reencodeForUri().toString()
        return try {
          URI(uri)
        } catch (e: URISyntaxException) {
          // Unlikely edge case: the URI has a forbidden character in the fragment. Strip it & retry.
          try {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 63.5K bytes
    - Viewed (0)
Back to top