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

Method getlist

starlette/datastructures.py:537–539  ·  starlette/datastructures.py::Headers.getlist
(self, key: str)

Source from the content-addressed store, hash-verified

535 return [(key.decode(class="st">"latin-1"), value.decode(class="st">"latin-1")) for key, value in self._list]
536
537 def getlist(self, key: str) -> list[str]:
538 get_header_key = key.lower().encode(class="st">"latin-1")
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[:])

Callers 7

test_headersFunction · 0.95
cookiesMethod · 0.45
send_push_promiseMethod · 0.45
test_queryparamsFunction · 0.45
test_formdataFunction · 0.45
test_multidictFunction · 0.45
homepageFunction · 0.45

Calls 1

decodeMethod · 0.80

Tested by 5

test_headersFunction · 0.76
test_queryparamsFunction · 0.36
test_formdataFunction · 0.36
test_multidictFunction · 0.36
homepageFunction · 0.36