(
items: typing.Iterable[tuple[typing.AnyStr, typing.AnyStr]],
)
| 128 | |
| 129 | |
| 130 | def _obfuscate_sensitive_headers( |
| 131 | items: typing.Iterable[tuple[typing.AnyStr, typing.AnyStr]], |
| 132 | ) -> typing.Iterator[tuple[typing.AnyStr, typing.AnyStr]]: |
| 133 | for k, v in items: |
| 134 | if to_str(k.lower()) in SENSITIVE_HEADERS: |
| 135 | v = to_bytes_or_str("[secure]", match_type_of=v) |
| 136 | yield k, v |
| 137 | |
| 138 | |
| 139 | class Headers(typing.MutableMapping[str, str]): |
no test coverage detected