diff options
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r-- | Lib/httplib.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py index c0d372f..a4102ea 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -493,6 +493,12 @@ class HTTPResponse: raise ResponseNotReady() return self.msg.getheader(name, default) + def getheaders(self): + """Return list of (header, value) tuples.""" + if self.msg is None: + raise ResponseNotReady() + return self.msg.items() + class HTTPConnection: |