Redactor

fun interface Redactor

Phase 34 Plan 03 (AND-PAYLOAD-05) — host-pluggable redaction SAM.

A Redactor is a pure function from an already-serialized request body to a redacted body. Hosts register custom redactors via FeedbackConfig.Builder.addRedactor(...); defaults (regex-based email / phone / IP / Luhn card) are always composed into the pipeline alongside any host-supplied redactors.

Redactors must not throw — the pipeline wraps each invocation in runCatching, but hosts should still treat redact as total.

Functions

Link copied to clipboard
abstract fun redact(input: String): String