Return a list of all the message's header 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)
| 482 | return [k for k, v in self._headers] |
| 483 | |
| 484 | def values(self): |
| 485 | """Return a list of all the message's header values. |
| 486 | |
| 487 | These will be sorted in the order they appeared in the original |
| 488 | message, or were added to the message, and may contain duplicates. |
| 489 | Any fields deleted and re-inserted are always appended to the header |
| 490 | list. |
| 491 | """ |
| 492 | return [self.policy.header_fetch_parse(k, v) |
| 493 | for k, v in self._headers] |
| 494 | |
| 495 | def items(self): |
| 496 | """Get all the message's header fields and values. |