2. Enterprise Integration Patterns

headerFilter

Version

Removes message headers matching a list of patterns. The first matching child element will be acted upon by the filter.

Syntax

headerFilter:
- <filterRules>
headerFilter:
  - <filterRules>

Sample

<api port="80">
<headerFilter>
<include>Content.*</include>
<include>Location</include>
<exclude>.*</exclude>
</headerFilter>
<target url="https://membrane-api.io" />
</api>
<api port="80">
    <headerFilter>
        <include>Content.*</include>
        <include>Location</include>
        <exclude>.*</exclude>
    </headerFilter>
    <target url="https://membrane-api.io" />
</api>

Child Structure

ElementCardinalityDescription
filterRules0..*List of actions to take (either allowing or removing HTTP headers).

Can be used in