MCPcopy
hub / github.com/encode/httpx / multi_items

Method multi_items

httpx/_models.py:231–240  ·  httpx/_models.py::Headers.multi_items

Return a list of `(key, value)` pairs of headers. Allow multiple occurrences of the same key without concatenating into a single comma separated value.

(self)

Source from the content-addressed store, hash-verified

229 return values_dict.items()
230
231 def multi_items(self) -> list[tuple[str, str]]:
232 class="st">"""
233 Return a list of `(key, value)` pairs of headers. Allow multiple
234 occurrences of the same key without concatenating into a single
235 comma separated value.
236 class="st">"""
237 return [
238 (key.decode(self.encoding), value.decode(self.encoding))
239 for _, key, value in self._list
240 ]
241
242 def get(self, key: str, default: typing.Any = None) -> typing.Any:
243 class="st">"""

Callers 4

__repr__Method · 0.95
test_headersFunction · 0.95
infoMethod · 0.45

Calls 1

decodeMethod · 0.45

Tested by 2

test_headersFunction · 0.76