werkzeug.Headers.set¶
-
Headers.
set
(_key, _value, **kw)[source]¶ Remove all header tuples for key and add a new one. The newly added key either appears at the end of the list if there was no entry or replaces the first one.
Keyword arguments can specify additional parameters for the header value, with underscores converted to dashes. See
add()
for more information.Parameters: - key – The key to be inserted.
- value – The value to be inserted.