Altova FlowForce Server 2024 Advanced Edition

Returns a stream with header key set to value, and all other headers and content untouched. If you need to change several headers at once, you might want to use the set-mime-headers function.

 

Signature

set-mime-header(s:stream, key:string, value:string) -> stream

 

Parameters

Name

Type

Description

s

stream

Specifies the input stream.

key

string

Specifies the key of the header to set.

value

string

Specifies the header value to set.

 

Examples

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

 

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

© 2017-2023 Altova GmbH