The Remove Headers component can be used to remove headers that are not needed anymore from an exchange.
The Remove Headers component has the following configuration options:
Specify the regular expression(s) for the headers that should be removed.
Specify the regular expression(s) for the headers that should be ignored.
You can use:
textto specify a header name, in this case the header named
*to remove all headers.
|as a separation symbol to specify a list of headers that should be removed or excluded.
()to encapsulate an expression:
(text_*)will remove or exclude all headers starting with
(*_text)will remove or exclude all headers ending with [something]
Headers in Dovetail are case-insensitive, but the Remove Headers component works in a case-sensitive way. For example: a header with the name
Subject will not be removed when you specify
subject in the Pattern option.
When you use the
* wildcard in the
Pattern attribute not all headers are removed. Some headers, like
breadcrumbId, are excluded from removal because they are used by the backend.
If you configure the Remove Headers component with the following settings:
And there is an exchange with the following headers:
The results is that
text2 will be removed. While
text_ will be ignored.