lburgazzoli edited a comment on issue #177: CamelCloudEventXXX not converted to 
CE header
URL: https://github.com/apache/camel-k-runtime/issues/177#issuecomment-546715152
 
 
   The `CamelCloudEvent*` are helpers for user to avoid caring about the cloud 
event spec version but of course they are limited to the known attributes.  
CloudEvent headers have the precedence over `CamelCloudEvent*` so assuming a 
route using CloudEvent spec v0.3 like:
   
   ```java
   from("direct:start")
       .setHeader("ce-type")).constant("fromCEHeader")
       .setHeader("CamelCloudEventType").constant("fromCamelHeader")
       .to("knative:endpoint/ep");
   ```
   
   The cloud event type will be set to `fromCEHeader` 
   
   Note that:
   - camel-knative producer does not generate structured content but always 
binary content whereas the consumer can handle both.
   - `CamelCloudEvent*` on consumer side are added **in addition** to the 
CloudEvent header recevived by the consumer
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to