Name
add_header
Synopsis
m
.add_header(_name
,_value
,**_params
)
Like
m
[
_name
]=
_value
,
but you can also supply header parameters as keyword arguments. For
each keyword argument
pname
=
pvalue
,
add_header
changes underscores to dashes, then
appends to the header’s value a parameter of the
form:
;pname
="pvalue
"
If pvalue
is None
,
add_header
appends only a parameter
';
pname
‘.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.