sanitizeBody

fun sanitizeBody(transform: (String) -> String)

Rewrite captured body previews (request and response) before they are stored — e.g. blank out a JSON field. Transforms apply in registration order, after truncation; only the stored preview is affected, never the real traffic.