Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
pip._vendor.requests.structures.CaseInsensitiveDict Class Reference
Inheritance diagram for pip._vendor.requests.structures.CaseInsensitiveDict:
Inheritance graph
[legend]
Collaboration diagram for pip._vendor.requests.structures.CaseInsensitiveDict:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self, data=None, **kwargs)
 
 __setitem__ (self, key, value)
 
 __getitem__ (self, key)
 
 __delitem__ (self, key)
 
 __iter__ (self)
 
 __len__ (self)
 
 lower_items (self)
 
 __eq__ (self, other)
 
 copy (self)
 
 __repr__ (self)
 

Protected Attributes

 _store
 

Detailed Description

A case-insensitive ``dict``-like object.

Implements all methods and operations of
``MutableMapping`` as well as dict's ``copy``. Also
provides ``lower_items``.

All keys are expected to be strings. The structure remembers the
case of the last key to be set, and ``iter(instance)``,
``keys()``, ``items()``, ``iterkeys()``, and ``iteritems()``
will contain case-sensitive keys. However, querying and contains
testing is case insensitive::

    cid = CaseInsensitiveDict()
    cid['Accept'] = 'application/json'
    cid['aCCEPT'] == 'application/json'  # True
    list(cid) == ['Accept']  # True

For example, ``headers['content-encoding']`` will return the
value of a ``'Content-Encoding'`` response header, regardless
of how the header name was originally stored.

If the constructor, ``.update``, or equality comparison
operations are given keys that have equal ``.lower()``s, the
behavior is undefined.

Member Function Documentation

◆ lower_items()

pip._vendor.requests.structures.CaseInsensitiveDict.lower_items (   self)
Like iteritems(), but with all lowercase keys.

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