Integrate Software AG Products Using Digital Event Services 10.4 | 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 © 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release