- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for canonicalUrl (0.04 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt
* exception by calling [HttpUrl.parse]; it returns null for invalid URLs. */ open fun url(url: String): Builder = url(canonicalUrl(url).toHttpUrl()) // Silently replace web socket URLs with HTTP URLs. private fun canonicalUrl(url: String) = when { url.startsWith("ws:", ignoreCase = true) -> "http:${url.substring(3)}"
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Oct 30 13:46:58 UTC 2025 - 14.7K bytes - Viewed (1)