MCPcopy Index your code
hub / github.com/RustPython/RustPython / getheaders

Method getheaders

Lib/http/client.py:770–774  ·  view source on GitHub ↗

Return list of (header, value) tuples.

(self)

Source from the content-addressed store, hash-verified

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

Callers 1

single_requestMethod · 0.45

Calls 3

ResponseNotReadyClass · 0.85
listClass · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected