MCPcopy
hub / github.com/encode/starlette / mutablecopy

Method mutablecopy

starlette/datastructures.py:541–542  ·  starlette/datastructures.py::Headers.mutablecopy
(self)

Source from the content-addressed store, hash-verified

539 return [item_value.decode(class="st">"latin-1") for item_key, item_value in self._list if item_key == get_header_key]
540
541 def mutablecopy(self) -> MutableHeaders:
542 return MutableHeaders(raw=self._list[:])
543
544 def __getitem__(self, key: str) -> str:
545 get_header_key = key.lower().encode(class="st">"latin-1")

Callers 2

test_headers_mutablecopyFunction · 0.95
__or__Method · 0.80

Calls 1

MutableHeadersClass · 0.85

Tested by 1

test_headers_mutablecopyFunction · 0.76