Orbits
1
|
Public Member Functions | |
def | __init__ |
def | get_type |
def | get_host |
def | get_origin_req_host |
def | get_full_url |
def | is_unverifiable |
def | has_header |
def | get_header |
def | add_header |
def | add_unredirected_header |
def | get_new_headers |
def | unverifiable |
def | origin_req_host |
def | host |
Public Attributes | |
type | |
Private Attributes | |
_r | |
_new_headers | |
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.
def pip._vendor.requests.cookies.MockRequest.__init__ | ( | self, | |
request | |||
) |
def pip._vendor.requests.cookies.MockRequest.add_header | ( | self, | |
key, | |||
val | |||
) |
cookielib has no legitimate use for this method; add it back if you find one.
def pip._vendor.requests.cookies.MockRequest.add_unredirected_header | ( | self, | |
name, | |||
value | |||
) |
def pip._vendor.requests.cookies.MockRequest.get_full_url | ( | self | ) |
def pip._vendor.requests.cookies.MockRequest.get_header | ( | self, | |
name, | |||
default = None |
|||
) |
def pip._vendor.requests.cookies.MockRequest.get_host | ( | self | ) |
def pip._vendor.requests.cookies.MockRequest.get_new_headers | ( | self | ) |
def pip._vendor.requests.cookies.MockRequest.get_origin_req_host | ( | self | ) |
def pip._vendor.requests.cookies.MockRequest.get_type | ( | self | ) |
def pip._vendor.requests.cookies.MockRequest.has_header | ( | self, | |
name | |||
) |
def pip._vendor.requests.cookies.MockRequest.host | ( | self | ) |
def pip._vendor.requests.cookies.MockRequest.is_unverifiable | ( | self | ) |
def pip._vendor.requests.cookies.MockRequest.origin_req_host | ( | self | ) |
def pip._vendor.requests.cookies.MockRequest.unverifiable | ( | self | ) |
|
private |
|
private |
pip._vendor.requests.cookies.MockRequest.type |
Copyright 2014 Google Inc. All rights reserved.