PyDocs

Nav

Internet Protocols and Support

Headers.add_header

  • Headers.add_header(name, value, **_params)
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 only the key will be added.

Example:

h.add_header('content-disposition', 'attachment', filename='bud.gif')

Note that unlike the corresponding 'email.message' method, this does
*not* handle '(charset, language, value)' tuples: all values must be
strings or None.
0 Examples
No examples for wsgiref.headers/Headers.add_header.
See Also
No see-alsos for wsgiref.headers/Headers.add_header
0 Notes
No notes for Headers.add_header