Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | List of all members
pip._vendor.requests.cookies.MockRequest Class Reference

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
 

Detailed Description

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.

Member Function Documentation

◆ add_header()

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.

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