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

Method get_all

python/python3/tornado/httputil.py:152–160  ·  view source on GitHub ↗

Returns an iterable of all (name, value) pairs. If a header has multiple values, multiple pairs will be returned with the same name.

(self)

Source from the content-addressed store, hash-verified

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.
154
155 If a header has multiple values, multiple pairs will be
156 returned with the same name.
157 """
158 for name, values in self._as_list.items():
159 for value in values:
160 yield (name, value)
161
162 def parse_line(self, line: str) -> None:
163 """Updates the dictionary with a single header line.

Callers 13

__str__Method · 0.95
test_header_reuseMethod · 0.95
test_pickle_roundtripMethod · 0.95
test_setdefaultMethod · 0.95
_curl_setup_requestMethod · 0.80
headers_receivedMethod · 0.80
__init__Method · 0.80
write_headersMethod · 0.80
prepareMethod · 0.80
test_multi_lineMethod · 0.80
test_unicode_newlinesMethod · 0.80
test_optional_crMethod · 0.80

Calls 1

itemsMethod · 0.80

Tested by 8

test_header_reuseMethod · 0.76
test_pickle_roundtripMethod · 0.76
test_setdefaultMethod · 0.76
prepareMethod · 0.64
test_multi_lineMethod · 0.64
test_unicode_newlinesMethod · 0.64
test_optional_crMethod · 0.64
test_copyMethod · 0.64