As a complement to my last answer, one of the reasons I want to set a custom 
Content-Type value is because we include versioning in our custom media types 
(I skipped this part to simplify my example code in earlier mails). We simply 
want to use Content-Type to show the type and version of the data returned from 
our REST service.

However, as long as I can't figure out how to set "contentTypeHeader" to false 
(for the DataFormat implementations internally used by REST DSL routes), the 
custom Content-Type value (which I explicitly set in the route) will always be 
overriden to either "application/xml" or "application/json".

Is there a way to configure "contentTypeHeader" when implementing a route using 
REST DSL? If not, is there a reason why not?

Thanks in advance,
Calle


Reply via email to