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.
scheme://host[:port]
/v2/<key>
?apikey=...
<redacted-url>