MCPcopy
hub / github.com/pallets/werkzeug / _del_key

Method _del_key

src/werkzeug/datastructures/headers.py:264–272  ·  view source on GitHub ↗
(self, key: str)

Source from the content-addressed store, hash-verified

262 del self._list[key]
263
264 def _del_key(self, key: str) -> None:
265 key = key.lower()
266 new = []
267
268 for k, v in self._list:
269 if k.lower() != key:
270 new.append((k, v))
271
272 self._list[:] = new
273
274 def remove(self, key: str) -> None:
275 """Remove a key.

Callers 2

__delitem__Method · 0.95
removeMethod · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected