Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for toCanonicalHost (0.06 sec)

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

    import okhttp3.internal.http.MAX_DATE
    import okhttp3.internal.http.toHttpDateString
    import okhttp3.internal.indexOfControlOrNonAscii
    import okhttp3.internal.publicsuffix.PublicSuffixDatabase
    import okhttp3.internal.toCanonicalHost
    import okhttp3.internal.trimSubstring
    import okhttp3.internal.unmodifiable
    import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
    
    /**
     * An [RFC 6265](http://tools.ietf.org/html/rfc6265) Cookie.
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt

    import java.security.cert.X509Certificate
    import javax.net.ssl.SSLPeerUnverifiedException
    import okhttp3.internal.filterList
    import okhttp3.internal.tls.CertificateChainCleaner
    import okhttp3.internal.toCanonicalHost
    import okio.ByteString
    import okio.ByteString.Companion.decodeBase64
    import okio.ByteString.Companion.toByteString
    
    /**
     * Constrains which certificates are trusted. Pinning certificates defends against attacks on
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt

     * `null` will be returned if the host cannot be ToASCII encoded or if the result contains
     * unsupported ASCII characters.
     */
    internal fun String.toCanonicalHost(): String? {
      val host: String = this
    
      // If the input contains a :, it’s an IPv6 address.
      if (":" in host) {
        // If the input is encased in square braces "[...]", drop 'em.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 11.2K bytes
    - Viewed (0)
Back to top