You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add support for censoring XML, HTML and plain text bodies
[BREAKING CHANGE] CensorElement now abstract base class, cannot be used directly
Three types of CensorElement options available:
KeyCensorElement: Censor the value of a specified key (will be ignored if used for plain text/HTML data)
RegexCensorElement: Censor any string that matches a specified regex pattern (will check the value of a key-value pair if used for JSON/XML data)
TextCensorElement: Censor a specified string (will check the value of a key-value pair if used for JSON/XML data; requires the whole body to match the specified string if used for plain text/HTML data)
Body censoring: KeyCensorElement (recommended for JSON/XML if key is known), TextCensorElement (recommended for JSON/XML if value is known), and RegexCensorElement (recommended for plain text/HTML)
Path element censoring: Use RegexCensorElement
Query parameter censoring: Use KeyCensorElement
Header censoring: Use KeyCensorElement
[BREAKING CHANGE] CensorHeadersByKeys, CensorBodyElementsByKeys, CensorQueryParametersByKeys and CensorPathElementsByPatterns removed
Use CensorHeaders, CensorBodyElements, CensorQueryParameters and CensorPathElements instead