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

Method items

starlette/datastructures.py:534–535  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

532 return [value.decode("latin-1") for key, value in self._list]
533
534 def items(self) -> list[tuple[str, str]]: # type: ignore[override]
535 return [(key.decode("latin-1"), value.decode("latin-1")) for key, value in self._list]
536
537 def getlist(self, key: str) -> list[str]:
538 get_header_key = key.lower().encode("latin-1")

Callers 15

__repr__Method · 0.95
test_headersFunction · 0.95
__init__Method · 0.45
init_headersMethod · 0.45
replace_paramsFunction · 0.45
matchesMethod · 0.45
matchesMethod · 0.45
matchesMethod · 0.45
matchesMethod · 0.45
include_query_paramsMethod · 0.45
replace_query_paramsMethod · 0.45

Calls 1

decodeMethod · 0.80

Tested by 14

test_headersFunction · 0.76
test_headers_mutablecopyFunction · 0.36
test_queryparamsFunction · 0.36
test_formdataFunction · 0.36
test_multidictFunction · 0.36
appFunction · 0.36