MCPcopy Index your code
hub / github.com/python/cpython / getheaders

Method getheaders

Lib/http/client.py:773–777  ·  view source on GitHub ↗

Return list of (header, value) tuples.

(self)

Source from the content-addressed store, hash-verified

771 return ', '.join(headers)
772
773 def getheaders(self):
774 """Return list of (header, value) tuples."""
775 if self.headers is None:
776 raise ResponseNotReady()
777 return list(self.headers.items())
778
779 # We override IOBase.__iter__ so that it doesn't check for closed-ness
780

Callers 1

single_requestMethod · 0.45

Calls 3

ResponseNotReadyClass · 0.85
listClass · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected