Skip to content

//okhttp/okhttp3/HttpUrl/redact

redact

[jvm]\ fun redact(): String

Returns a string with containing this URL with its username, password, query, and fragment stripped, and its path replaced with /.... For example, redacting http://username:password@example.com/path returns http://example.com/....