MCPcopy Index your code
hub / github.com/python/cpython / items

Method items

Lib/email/message.py:495–504  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 8

decode_paramsFunction · 0.45
paramsMethod · 0.45
add_headerMethod · 0.45
__init__Method · 0.45
__repr__Method · 0.45
cloneMethod · 0.45
_extend_docstringsFunction · 0.45
_finalize_setFunction · 0.45

Calls 1

header_fetch_parseMethod · 0.45

Tested by

no test coverage detected