Integrate Software AG Products Using Digital Event Services : MashZone NextGen Help : Appendix : Legacy Presto components : Mashables and Mashups : Mashups in EMML : Advanced Mashup Techniques : Adding HTTP Headers to the Mashup Result
Adding HTTP Headers to the Mashup Result
You can define HTTP headers to send with a mashup result when the mashup is invoked in MashZone NextGen. For any HTTP header, you add <variable> declarations using reserved names in the form httpResponse.header-name.
The header-name portion of the variable name can be any standard HTTP header or a custom header. Custom header names must begin with X-. For example:
<variables>
<!-- standard content type HTTP header for a result is CSV format -->
<variable name="httpResponse.Content-Type" type="string" default="text/csv"/>
<!-- standard last modified HTTP header -->
<variable name="httpResponse.Last-Modified" type="datetime"/>
<!-- custom HTTP header -->
<variable name="httpResponse.X-CUSTOM-HEADER" type="string"/>
</variables>
<assign outputvariable="$httpResponse.X-CUSTOM-HEADER" fromexpr="......"/>
Copyright © 2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback