Is there any global setting or something available to stop camel copying all request header in the response. The endpoint looks like something similar to <camel:route id="doSomething"> <camel:from uri="rest:post:///doSomething" />....
Asked
Active
Viewed 29 times
1
-
Inserting a `
` in your route can do the job, but I guess you mean a GLOBAL setting for the whole Camel Context ? – TacheDeChoco Jul 12 '23 at 06:59 -
yes Globally, and it should remove only from the final response of rest api, not any intermediate forwarding endpoints. – mac Jul 12 '23 at 12:36
1 Answers
0
You may consider using onCompletion It can be set on route as well global level. Also verify the mode you need.
<onCompletion mode="BeforeConsumer">
<removeHeaders pattern="*"/>
</onCompletion>

Loginus
- 151
- 8