b.t.h._.addinfourl(urllib2.addinfourl) : class documentation

Part of bzrlib.transport.http._urllib2_wrappers View In Hierarchy

Replacement addinfourl class compatible with python-2.7's xmlrpclib

In python-2.7, xmlrpclib expects that the response object that it receives has a getheader method. httplib.HTTPResponse provides this but urllib2.addinfourl does not. Add the necessary functions here, ported to use the internal data structures of addinfourl.

Method getheader Undocumented
Method getheaders Undocumented
def getheader(self, name, default=None):
def getheaders(self):
API Documentation for Bazaar, generated by pydoctor at 2020-02-26 00:42:13.