MCPcopy
hub / github.com/tornadoweb/tornado / __setitem__

Method __setitem__

tornado/httputil.py:339–342  ·  view source on GitHub ↗
(self, name: str, value: str)

Source from the content-addressed store, hash-verified

337 # MutableMapping abstract method implementations.
338
339 def __setitem__(self, name: str, value: str) -> None:
340 norm_name = _normalize_header(name)
341 self._combined_cache[norm_name] = value
342 self._as_list[norm_name] = [value]
343
344 def __contains__(self, name: object) -> bool:
345 # This is an important optimization to avoid the expensive concatenation

Callers

nothing calls this directly

Calls 1

_normalize_headerFunction · 0.85

Tested by

no test coverage detected