Returns an iterable of all (name, value) pairs. If a header has multiple values, multiple pairs will be returned with the same name.
(self)
| 150 | return self._as_list.get(norm_name, []) |
| 151 | |
| 152 | def get_all(self) -> Iterable[Tuple[str, str]]: |
| 153 | """Returns an iterable of all (name, value) pairs. |
| 154 | |
| 155 | If a header has multiple values, multiple pairs will be |
| 156 | returned with the same name. |
| 157 | """ |
| 158 | for name, values in self._as_list.items(): |
| 159 | for value in values: |
| 160 | yield (name, value) |
| 161 | |
| 162 | def parse_line(self, line: str) -> None: |
| 163 | """Updates the dictionary with a single header line. |