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

Method set_param

Lib/email/message.py:571–617  ·  view source on GitHub ↗

Set a parameter in the Content-Type header. If the parameter already exists in the header, its value will be replaced with the new value. If header is Content-Type and has not yet been defined for this message, it will be set to "text/plain" and the new parameter an

(self, param, value, header='Content-Type', requote=True,
                  charset=None, language='')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 12

set_charsetMethod · 0.95
set_typeMethod · 0.95
test_set_paramMethod · 0.95
test_set_typeMethod · 0.95
test_set_paramMethod · 0.95
test_set_paramMethod · 0.95
test_set_typeMethod · 0.95
test_set_paramMethod · 0.95
test_del_paramMethod · 0.80
test_del_paramMethod · 0.80
test_del_paramMethod · 0.80
test_del_paramMethod · 0.80

Calls 6

getMethod · 0.95
get_paramMethod · 0.95
get_paramsMethod · 0.95
_formatparamFunction · 0.70
lowerMethod · 0.45
joinMethod · 0.45

Tested by 10

test_set_paramMethod · 0.76
test_set_typeMethod · 0.76
test_set_paramMethod · 0.76
test_set_paramMethod · 0.76
test_set_typeMethod · 0.76
test_set_paramMethod · 0.76
test_del_paramMethod · 0.64
test_del_paramMethod · 0.64
test_del_paramMethod · 0.64
test_del_paramMethod · 0.64