Altova FlowForce Server 2024 Advanced Edition

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.

 

Signature

set-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 set.

 

Examples

To override the "Content-Type" header, use:

 

set-mime-headers(s, list(("Content-Type", "text/plain; charset=iso-8859-1"))) 

© 2017-2023 Altova GmbH