Using the setHeader
element, we can easily set an HTTP Header
<api port="2000">
<response>
<setHeader name="X-Foo" value="bar" />
</response>
<target url="https://api.predic8.de" />
</api>
curl -v localhost:2000
setHeader | Documentation |