Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for removePrefix (0.05 seconds)

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

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

         * Returns a domain string like `example.com` for an input domain like `EXAMPLE.COM`
         * or `.example.com`.
         */
        private fun parseDomain(s: String): String {
          require(!s.endsWith("."))
          return s.removePrefix(".").toCanonicalHost() ?: throw IllegalArgumentException()
        }
    
        /** Returns all of the cookies from a set of HTTP response headers. */
        @JvmStatic
        fun parseAll(
          url: HttpUrl,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon May 05 16:01:00 GMT 2025
    - 23.1K bytes
    - Click Count (0)
Back to Top