Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Public Member Functions | Private Attributes | List of all members
pip._vendor.requests.cookies.MockResponse Class Reference
Inheritance diagram for pip._vendor.requests.cookies.MockResponse:
_object

Public Member Functions

def __init__
 
def info
 
def getheaders
 

Private Attributes

 _headers
 

Detailed Description

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.

Constructor & Destructor Documentation

def pip._vendor.requests.cookies.MockResponse.__init__ (   self,
  headers 
)
Make a MockResponse for `cookielib` to read.

:param headers: a httplib.HTTPMessage or analogous carrying the headers

Member Function Documentation

def pip._vendor.requests.cookies.MockResponse.getheaders (   self,
  name 
)
def pip._vendor.requests.cookies.MockResponse.info (   self)

Member Data Documentation

pip._vendor.requests.cookies.MockResponse._headers
private

The documentation for this class was generated from the following file:

Copyright 2014 Google Inc. All rights reserved.