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

Method set_raw

Lib/email/message.py:523–528  ·  view source on GitHub ↗

Store name and value in the model without modification. This is an "internal" API, intended only for use by a parser.

(self, name, value)

Source from the content-addressed store, hash-verified

521 #
522
523 def set_raw(self, name, value):
524 """Store name and value in the model without modification.
525
526 This is an "internal" API, intended only for use by a parser.
527 """
528 self._headers.append((name, value))
529
530 def raw_items(self):
531 """Return the (name, value) header pairs without modification.

Callers 1

_parse_headersMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected