Collections
from aioauth import collections
Collections that are used throughout the project.
- class HTTPHeaderDict(dict=None, /, **kwargs)[source]
- Parameters:
headers – An iterable of field-value pairs. Must not contain multiple field names when compared case-insensitively.
kwargs – Additional field-value pairs to pass in to
dict.update
.
A
dict
like container for storing HTTP Headers.Example:
from aioauth.collections import HTTPHeaderDict d = HTTPHeaderDict({"hello": "world"}) d['hello'] == 'world' # >>> True d['Hello'] == 'world' # >>> True d['hElLo'] == 'world' # >>> True