How to set an HTTP Header

Using the setHeader element, we can easily set an HTTP Header

Ingredients

Configuration

<api port="2000">
    <response>
        <setHeader name="X-Foo" value="bar" />
    </response>
    <target url="https://api.predic8.de" />
</api>
curl -v localhost:2000

Resources

setHeader Documentation