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

Public Member Functions

 __init__ (self, headers)
 
 info (self)
 
 getheaders (self, name)
 

Protected 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

◆ __init__()

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

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