class documentation
class MockRequest: (source)
Wraps a `requests.Request` to mimic a `urllib2.Request`. The code in `cookielib.CookieJar` expects this interface in order to correctly manage cookie policies, i.e., determine whether a cookie can be set, given the domains of the request and the cookie. The original request object is read-only. The client is responsible for collecting the new headers via `get_new_headers()` and interpreting them appropriately. You probably want `get_cookie_header`, defined below.
Method | __init__ |
Undocumented |
Method | add |
cookielib has no legitimate use for this method; add it back if you find one. |
Method | add |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | has |
Undocumented |
Method | is |
Undocumented |
Instance Variable | type |
Undocumented |
Property | host |
Undocumented |
Property | origin |
Undocumented |
Property | unverifiable |
Undocumented |
Instance Variable | _new |
Undocumented |
Instance Variable | _r |
Undocumented |