Get all the message's header fields and values. These will be sorted in the order they appeared in the original message, or were added to the message, and may contain duplicates. Any fields deleted and re-inserted are always appended to the header list.
(self)
| 493 | for k, v in self._headers] |
| 494 | |
| 495 | def items(self): |
| 496 | """Get all the message's header fields and values. |
| 497 | |
| 498 | These will be sorted in the order they appeared in the original |
| 499 | message, or were added to the message, and may contain duplicates. |
| 500 | Any fields deleted and re-inserted are always appended to the header |
| 501 | list. |
| 502 | """ |
| 503 | return [(k, self.policy.header_fetch_parse(k, v)) |
| 504 | for k, v in self._headers] |
| 505 | |
| 506 | def get(self, name, failobj=None): |
| 507 | """Get a header value. |
no test coverage detected