MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / getheaders

Method getheaders

tools/python-3.11.9-amd64/Lib/http/client.py:746–750  ·  view source on GitHub ↗

Return list of (header, value) tuples.

(self)

Source from the content-addressed store, hash-verified

744 return ', '.join(headers)
745
746 def getheaders(self):
747 """Return list of (header, value) tuples."""
748 if self.headers is None:
749 raise ResponseNotReady()
750 return list(self.headers.items())
751
752 # We override IOBase.__iter__ so that it doesn't check for closed-ness
753

Callers 1

single_requestMethod · 0.45

Calls 3

ResponseNotReadyClass · 0.85
listFunction · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected