class documentation
class MockResponse: (source)
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 |