Return a list of all the message's header field names. 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)
| 472 | yield field |
| 473 | |
| 474 | def keys(self): |
| 475 | """Return a list of all the message's header field names. |
| 476 | |
| 477 | These will be sorted in the order they appeared in the original |
| 478 | message, or were added to the message, and may contain duplicates. |
| 479 | Any fields deleted and re-inserted are always appended to the header |
| 480 | list. |
| 481 | """ |
| 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. |
no outgoing calls