headers static method

Map<String, String> headers(
  1. Map<String, String> headers
)

Masks headers. Values may be strings or lists.

Implementation

static Map<String, String> headers(Map<String, String> headers) => {
  for (final entry in headers.entries)
    entry.key: isSensitive(entry.key) ? mask : entry.value,
};