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

Method info

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

Source from the content-addressed store, hash-verified

1268 self.response = response
1269
1270 def info(self) -> email.message.Message:
1271 info = email.message.Message()
1272 for key, value in self.response.headers.multi_items():
1273 # Note that setting `info[key]` here is an "append" operation,
1274 # not a "replace" operation.
1275 # https://docs.python.org/3/library/email.compat32-message.html#email.message.Message.__setitem__
1276 info[key] = value
1277 return info

Callers 2

_send_single_requestMethod · 0.80
_send_single_requestMethod · 0.80

Calls 1

multi_itemsMethod · 0.45

Tested by

no test coverage detected