censorBodyElementsByKeys method

Censors censorBodyElementsByKeys(
  1. List<String> keys, {
  2. bool caseSensitive = false,
})

Add the given keys to the list of elements to censor from request bodies.

If caseSensitive is true, the keys will be censored only when matching case exactly.

Implementation

Censors censorBodyElementsByKeys(List<String> keys,
    {bool caseSensitive = false}) {
  _bodyElementsToCensor.addAll(
      keys.map((key) => CensorElement(key, caseSensitive: caseSensitive)));
  return this;
}