Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for getEffectiveTldPlusOne (0.09 seconds)

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

          }
    
          // If the domain is a suffix of the url host, it must not be a public suffix.
          if (urlHost.length != domain.length &&
            PublicSuffixDatabase.get().getEffectiveTldPlusOne(domain) == null
          ) {
            return null
          }
    
          // If the path is absent or didn't start with '/', use the default path. It's a string like
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 23.1K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt

       * | `http://127.0.0.1`            | null                 |
       */
      fun topPrivateDomain(): String? =
        if (host.canParseAsIpAddress()) {
          null
        } else {
          PublicSuffixDatabase.get().getEffectiveTldPlusOne(host)
        }
    
      @JvmName("-deprecated_url")
      @Deprecated(
        message = "moved to toUrl()",
        replaceWith = ReplaceWith(expression = "toUrl()"),
        level = DeprecationLevel.ERROR,
      )
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 63.5K bytes
    - Click Count (0)
Back to Top