class documentation

class MockResponse: (source)

View In Hierarchy

Wraps a `httplib.HTTPMessage` to mimic a `urllib.addinfourl`. ...what? Basically, expose the parsed HTTP headers from the server response the way `cookielib` expects to see them.

Method __init__ Make a MockResponse for `cookielib` to read.
Method getheaders Undocumented
Method info Undocumented
Instance Variable _headers Undocumented
def __init__(self, headers): (source)

Make a MockResponse for `cookielib` to read. :param headers: a httplib.HTTPMessage or analogous carrying the headers

def getheaders(self, name): (source)

Undocumented

def info(self): (source)

Undocumented

_headers = (source)

Undocumented