4. Interceptors/Features

headerFilter

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

Can be used in:

serviceProxy, api, stompProxy, swaggerProxy, if, registration, wsStompReassembler, interceptor, bean, internalProxy, transport and soapProxy

Syntax

<headerFilter>
  [<include>pattern</include> | <exclude>pattern</exclude>]...
</headerFilter>

Sample

In the example, only headers starting with Content or the Location header will be kept; all others will be removed from requests and responses.

<serviceProxy port="80">
  <headerFilter>
	<include>Content.*<include>
	<include>Location<include>
	<exclude>.*<exclude>
  </headerFilter>
  <target host="www.membrane-soa.org" />
</serviceProxy>

Child Elements

ElementsDescriptionCardinality
exclude List of actions to take (either allowing or removing HTTP headers). 0..*
include List of actions to take (either allowing or removing HTTP headers). 0..*