nntp.headerdict =============== .. py:module:: nntp.headerdict .. autoapi-nested-parse:: 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 . Classes ------- .. autoapisummary:: nntp.headerdict.HeaderDict Module Contents --------------- .. py:class:: HeaderDict(other: collections.abc.Mapping[str, str] | collections.abc.Iterable[tuple[str, str]] | None = None, **kwargs: str) Bases: :py:obj:`collections.abc.MutableMapping`\ [\ :py:obj:`str`\ , :py:obj:`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__. .. py:attribute:: __proxy .. py:method:: __getitem__(key: str) -> str .. py:method:: __setitem__(key: str, value: str) -> None .. py:method:: __delitem__(key: str) -> None .. py:method:: __iter__() -> collections.abc.Iterator[str] .. py:method:: __len__() -> int .. py:method:: __eq__(other: object) -> bool .. py:method:: __repr__() -> str