Gets a specific MIME header from the current stream if such a header exists; otherwise, it returns the value of the default argument.
get-mime-header(s:stream, key:string, default:string="") -> string  | 
Name  | 
Type  | 
Description  | 
|---|---|---|
s  | 
stream  | 
Specifies the input stream.  | 
key  | 
string  | 
The key from the key-value pair that forms the header.  | 
default  | 
string  | 
Specifies the default value to return. By default, this is an empty string.  | 
Assuming that stream msg contains the header Content-Disposition: attachment; filename="GETMSG.edi", the following expression will return attachment; filename=\"GETMSG.edi\":
get-mime-header(msg, "Content-Disposition", "")  | 
In this example, if the stream does not have the "Content-Disposition" header, the expression above will return an empty string (the value of the third argument).