add-mime-headers
Returns a stream with all headers from headers added.
Signature
add-mime-headers(s:stream, headers:list of (string, string)) -> stream |
Parameters
Name | Type | Description |
---|---|---|
s | stream | Specifies the input stream. |
headers | list of (string, string) | The list of headers to be added. Use the list function to create a list. |
Examples
The following expression returns a stream with two headers: Content-Disposition, and Content-Transfer-Encoding.
add-mime-headers(empty-stream(), list(('Content-Disposition','attachment; name=something'), ('Content-Transfer-Encoding','7bit'))) |
