To Configure Headers

In the HTTP Listener, you can configure a verbose form of the response HTTP headers and status code. You configure two properties:

  • outboundHeadersMapName

    Supports sending custom headers with the response.

  • httpStatusVarName

    Supports sending a custom HTTP status code in the response.

Adding a Header to a Response

Put the header you want to add inside the outboundHeaders map, as shown in the following example:

    <ee:set-variable name="outboundHeaders">
        variables.outboundHeaders ++{headerName:"value"}

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub
Submit your feedback!
Share your thoughts to help us build the best documentation experience for you!
Take our latest survey!