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

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>