nntp.headerdict¶
Case-insentitive ordered mapping for headers. Copyright (C) 2013-2024 Byron Platt
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Classes¶
A MutableMapping is a generic container for associating |
Module Contents¶
- class nntp.headerdict.HeaderDict(other: collections.abc.Mapping[str, str] | collections.abc.Iterable[tuple[str, str]] | None = None, **kwargs: str)¶
Bases:
collections.abc.MutableMapping
[str
,str
]A MutableMapping is a generic container for associating key/value pairs.
This class provides concrete generic implementations of all methods except for __getitem__, __setitem__, __delitem__, __iter__, and __len__.
- __proxy¶
- __getitem__(key: str) str ¶
- __setitem__(key: str, value: str) None ¶
- __delitem__(key: str) None ¶
- __iter__() collections.abc.Iterator[str] ¶
- __len__() int ¶
- __eq__(other: object) bool ¶
- __repr__() str ¶