MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / add_header

Method add_header

Lib/email/message.py:388–411  ·  view source on GitHub ↗

Extended header setting. name is the header field to add. keyword arguments can be used to set additional parameters for the header field, with underscores converted to dashes. Normally the parameter will be added as key="value" unless value is None, in which case

(self, _name, _value, **_params)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

set_charsetMethod · 0.95
test_replace_headerMethod · 0.95
test_epilogueMethod · 0.95
test_no_nl_preambleMethod · 0.95
test_ascii_add_headerMethod · 0.95
test_replace_headerMethod · 0.95
test_epilogueMethod · 0.95
test_no_nl_preambleMethod · 0.95

Calls 6

_formatparamFunction · 0.70
itemsMethod · 0.45
appendMethod · 0.45
replaceMethod · 0.45
insertMethod · 0.45
joinMethod · 0.45

Tested by 15

test_replace_headerMethod · 0.76
test_epilogueMethod · 0.76
test_no_nl_preambleMethod · 0.76
test_ascii_add_headerMethod · 0.76
test_replace_headerMethod · 0.76
test_epilogueMethod · 0.76
test_no_nl_preambleMethod · 0.76