redactUrlCredentials
Este conteúdo não está disponível em sua língua ainda.
redactUrlCredentials(
value):string
Defined in: src/util/RedactUrlCredentials.ts:92
Replace the userinfo of every absolute URL in value with ***, leaving
the rest of the string byte-identical.
A no-op on anything without a scheme://…@ authority, so it is safe to
apply to a value that only might be a URL. Every URL in the string is
covered, not just the first: a joined server list
(nats://a:b@h1,nats://c:d@h2 — see NatsActor) has each entry masked,
and the entries cannot bleed into one another because an authority stops
at the / that opens the next one.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
