url

fun url(value: String?): String

Reduces a URL to scheme://host[:port]. JSON-RPC endpoints routinely embed the API key in the path (/v2/<key>) or query (?apikey=...) or userinfo; none of that survives. An unparseable value yields <redacted-url> rather than being echoed back.