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

Method values

httpx/_models.py:205–214  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

203 return {key.decode(self.encoding): None for _, key, value in self._list}.keys()
204
205 def values(self) -> typing.ValuesView[str]:
206 values_dict: dict[str, str] = {}
207 for _, key, value in self._list:
208 str_key = key.decode(self.encoding)
209 str_value = value.decode(self.encoding)
210 if str_key in values_dict:
211 values_dict[str_key] += f", {str_value}"
212 else:
213 values_dict[str_key] = str_value
214 return values_dict.values()
215
216 def items(self) -> typing.ItemsView[str, str]:
217 """

Callers 10

test_headersFunction · 0.95
closeMethod · 0.45
__enter__Method · 0.45
__exit__Method · 0.45
acloseMethod · 0.45
__aenter__Method · 0.45
__aexit__Method · 0.45
test_parse_header_linksFunction · 0.45

Calls 1

decodeMethod · 0.45

Tested by 4

test_headersFunction · 0.76
test_parse_header_linksFunction · 0.36