A redactor is a function that alters the response content being written
out in the
capture_requests() context, allowing you to remove sensitive
values, such as authentication tokens,
as well as any other modification or truncation of the response body. By
redact_auth() function will be used to purge standard
auth methods, but
set_redactor() allows you to provide a different one.
A function or expression that modifies
Invisibly, the redacting function, validated and perhaps modified.
Formulas and function lists are turned into proper functions.
NULL as input
Alternatively, you can put a redacting function in
in your package, and
any time your package is loaded (as in when running tests or building
vignettes), the function will be used automatically.
For further details on how to redact responses, see