Returns a stream with headers augmented by the key-value pairs from headers. The new headers will replace any existing headers of the same name.
set-mime-headers(s:stream, headers:list of (string, string)) -> stream |
Name |
Type |
Description |
---|---|---|
s |
stream |
Specifies the input stream. |
headers |
list of (string, string) |
The list of headers to set. |
To override the "Content-Type" header, use:
set-mime-headers(s, list(("Content-Type", "text/plain; charset=iso-8859-1"))) |