Remove Header

Options

The Remove Header eip supports 2 options, which are listed below.

Name Description Default Type

name

Name of header to remove.

String

headerName

Deprecated Name of header to remove (deprecated use name instead).

String

description

Sets the description of this node.

DescriptionDefinition

Samples

from("seda:b")
  .removeHeader("myHeader")
  .to("mock:result");

Spring DSL

The sample below demonstrates the delay in Spring DSL:

<route>
  <from uri="seda:b"/>
  <removeHeader>
     <constant>myHeader</constant>
  <removeHeader/>
  <to uri="mock:result"/>
</route>