![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|
Public Member Functions | |
| __init__ (self, request) | |
| get_type (self) | |
| get_host (self) | |
| get_origin_req_host (self) | |
| get_full_url (self) | |
| is_unverifiable (self) | |
| has_header (self, name) | |
| get_header (self, name, default=None) | |
| add_header (self, key, val) | |
| add_unredirected_header (self, name, value) | |
| get_new_headers (self) | |
| unverifiable (self) | |
| origin_req_host (self) | |
| host (self) | |
Public Attributes | |
| type | |
Protected 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.
| 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.