Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for removeprefix (0.16 sec)

  1. okhttp/src/main/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,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
Back to top