Skip to main content
Version: 4.11.0

Remove Headers Component

The Remove headers component can be used to remove headers that are not used anymore from an exchange.

Configuration

The Remove headers component has the following configuration options:

Pattern

Description

A regular expression to select which headers need to be removed.

Remarks

  • When you use the * wildcard in the Pattern attribute, Dovetail automatically excludes the breadcrumbId header. This header is used by Dovetail to order the tracing messages. If you also want to remove this header, then you can specify the pattern like this: \w+.
  • | can be used as a separation symbol to specify a list of headers that should be removed.

Exclude

Description

A regular expression to select the headers which don't need to be included in the pattern used above.

Remark

| can be used as a separation symbol to specify a list of headers that should be excluded from removal.

Remark

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.

Example

Remove headers component with the following settings:

  • Pattern: *
  • Exclude: header1|header2

Exchange with the following headers:

  • header1: value1
  • header2: value2
  • header3: value3

Result headers:

  • header1: value1
  • header2: value2

header3 is removed.