You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "gansheer (via GitHub)" <gi...@apache.org> on 2023/03/22 10:36:26 UTC

[GitHub] [camel-k] gansheer commented on issue #4144: how to set body of OUT message in yaml DSL?

gansheer commented on issue #4144:
URL: https://github.com/apache/camel-k/issues/4144#issuecomment-1479305952

   I think the answer is actually the one that @squakez gave you but you need to use the `- set-body` in the right place in your route to be able to access the response body instead of the request body.
   
   As for the headers from the IN message, if you want to remove them you need to use the [remove headers component](https://camel.apache.org/components/next/eips/removeHeaders-eip.html)
   ```yaml
         - removeHeaders:
             pattern: "*"
   ```
   
   
   You can ask more help on the user mailing list or the zulip chat room. Your question is more general Camel YAML DSL questions than Camel K specific.
   
   https://camel.apache.org/community/support/
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org