Redactor
Removes sensitive data from captured network traffic before it is stored.
Applied at capture time so redacted values are never persisted. The default implementation (covering auth/cookie headers; token/key/secret/password/ auth-like URL query params, JSON fields, and form fields) lives in :lustro.
Lustro calls it on a background capture thread, so the app's HTTP calls don't wait for it. When capture falls behind, the threads making those calls run it instead, so an implementation must be thread-safe. WebSocket messages are redacted on a second capture thread, and never on a socket's own threads.
Functions
Returns body with sensitive fields redacted, using contentType to decide how to parse it (e.g. JSON vs. form-encoded), or null if unknown.
Returns the bytes of a binary WebSocket message to store, or null to store only its size.
Returns the text to store for a WebSocket text message, or null to store only its size.