MCPcopy Create free account
hub / github.com/EasyIME/PIME / get_list

Method get_list

python/python3/tornado/httputil.py:147–150  ·  view source on GitHub ↗

Returns all values for the given header as a list.

(self, name: str)

Source from the content-addressed store, hash-verified

145 self[norm_name] = value
146
147 def get_list(self, name: str) -> List[str]:
148 """Returns all values for the given header as a list."""
149 norm_name = _normalize_header(name)
150 return self._as_list.get(norm_name, [])
151
152 def get_all(self) -> Iterable[Tuple[str, str]]:
153 """Returns an iterable of all (name, value) pairs.

Callers 10

test_copyMethod · 0.95
test_set_cookieMethod · 0.80
test_multi_headerMethod · 0.80
test_multi_lineMethod · 0.80

Calls 2

_normalize_headerFunction · 0.85
getMethod · 0.45

Tested by 10

test_copyMethod · 0.76
test_set_cookieMethod · 0.64
test_multi_headerMethod · 0.64
test_multi_lineMethod · 0.64