Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for toAscii (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp/src/jvmTest/resources/web-platform-test-toascii.json

    Yuri Schimke <******@****.***> 1735306796 +0200
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 5.2K bytes
    - Click Count (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/conn/IdnDnsResolverTest.java

            String expected = "www.codelibs.org";
            assertEquals(expected, resolver.toAscii(host));
    
            host = "テスト.org";
            expected = "xn--zckzah.org";
            assertEquals(expected, resolver.toAscii(host));
    
            host = "xn--zckzah.org";
            expected = "xn--zckzah.org";
            assertEquals(expected, resolver.toAscii(host));
    
            host = "%E3%83%86%E3%82%B9%E3%83%88.org";
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Thu Nov 06 07:24:43 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformToAsciiTest.kt

     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import kotlin.test.Test
    import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
    
    /** Runs the web platform ToAscii tests. */
    class WebPlatformToAsciiTest {
      @Suppress("ktlint:standard:max-line-length")
      val knownFailures =
        setOf(
          // OkHttp rejects empty labels.
          "x..xn--zca",
          "x..ß",
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 3.5K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt

    /**
     * If this is an IP address, this returns the IP address in canonical form.
     *
     * Otherwise, this performs IDN ToASCII encoding and canonicalize the result to lowercase. For
     * example this converts `☃.net` to `xn--n3h.net`, and `WwW.GoOgLe.cOm` to `www.google.com`.
     * `null` will be returned if the host cannot be ToASCII encoded or if the result contains
     * unsupported ASCII characters.
     */
    internal fun String.toCanonicalHost(): String? {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  5. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

              assertEquals(
                true,
                ioe.cause
                  ?.cause
                  ?.message
                  ?.startsWith("Invalid input to toASCII"),
              )
            }
            else -> throw ioe
          }
        }
      }
    
      @Test
      @Disabled("breaks conscrypt test")
      fun testBouncyCastleRequest() {
        assumeNetwork()
    
        try {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 29.9K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt

     * invalid URL. You can even be explicit about whether each component has been encoded already.
     *
     * [idna]: http://www.unicode.org/reports/tr46/#ToASCII
     */
    class HttpUrl private constructor(
      /** Either "http" or "https". */
      @get:JvmName("scheme") val scheme: String,
      /**
       * The decoded username, or an empty string if none is present.
       *
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon May 05 16:01:00 GMT 2025
    - 63.5K bytes
    - Click Count (0)
Back to Top