redactUrlAndPath method
Redacts both URL and path from a Uri in one call.
Returns a record with url (full URI string) and path (URI path only),
both redacted if useRedaction is true.
Implementation
({String url, String path}) redactUrlAndPath(
Uri uri, {
required bool useRedaction,
}) =>
(
url: redactUrl(uri.toString(), useRedaction: useRedaction),
path: redactUrl(uri.path, useRedaction: useRedaction),
);