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

Method get_list

tornado/httputil.py:230–233  ·  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

228 self[norm_name] = value
229
230 def get_list(self, name: str) -> List[str]:
231 """Returns all values for the given header as a list."""
232 norm_name = _normalize_header(name)
233 return self._as_list.get(norm_name, [])
234
235 def get_all(self) -> Iterable[Tuple[str, str]]:
236 """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