|
Orbits
1
|
Public Member Functions | |
| def | __init__ |
| def | __setitem__ |
| def | __getitem__ |
| def | __delitem__ |
| def | __iter__ |
| def | __len__ |
| def | lower_items |
| def | __eq__ |
| def | copy |
| def | __repr__ |
Private Attributes | |
| _store | |
A case-insensitive ``dict``-like object.
Implements all methods and operations of
``collections.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. | def pip._vendor.requests.structures.CaseInsensitiveDict.__init__ | ( | self, | |
data = None, |
|||
| kwargs | |||
| ) |
| def pip._vendor.requests.structures.CaseInsensitiveDict.__delitem__ | ( | self, | |
| key | |||
| ) |
| def pip._vendor.requests.structures.CaseInsensitiveDict.__eq__ | ( | self, | |
| other | |||
| ) |
| def pip._vendor.requests.structures.CaseInsensitiveDict.__getitem__ | ( | self, | |
| key | |||
| ) |
| def pip._vendor.requests.structures.CaseInsensitiveDict.__iter__ | ( | self | ) |
| def pip._vendor.requests.structures.CaseInsensitiveDict.__len__ | ( | self | ) |
| def pip._vendor.requests.structures.CaseInsensitiveDict.__repr__ | ( | self | ) |
| def pip._vendor.requests.structures.CaseInsensitiveDict.__setitem__ | ( | self, | |
| key, | |||
| value | |||
| ) |
| def pip._vendor.requests.structures.CaseInsensitiveDict.copy | ( | self | ) |
| def pip._vendor.requests.structures.CaseInsensitiveDict.lower_items | ( | self | ) |
Like iteritems(), but with all lowercase keys.
|
private |
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.