Returns an iterable of all (name, value) pairs. If a header has multiple values, multiple pairs will be returned with the same name.
(self)
| 233 | return self._as_list.get(norm_name, []) |
| 234 | |
| 235 | def get_all(self) -> Iterable[Tuple[str, str]]: |
| 236 | """Returns an iterable of all (name, value) pairs. |
| 237 | |
| 238 | If a header has multiple values, multiple pairs will be |
| 239 | returned with the same name. |
| 240 | """ |
| 241 | for name, values in self._as_list.items(): |
| 242 | for value in values: |
| 243 | yield (name, value) |
| 244 | |
| 245 | def parse_line(self, line: str, *, _chars_are_bytes: bool = True) -> None: |
| 246 | r"""Updates the dictionary with a single header line. |