Content-Type is not supported in Camel DELETE method?

后端 未结 3 521
傲寒
傲寒 2021-01-26 15:59

How do i send content-type in Camel DELETE method. I have added the following way but It was not working correctly.

from(\"direct:start\")
.setHeader(Exchange.H         


        
3条回答
  •  南笙
    南笙 (楼主)
    2021-01-26 16:21

    As this post mentions, camel can process body if request method is delete in HTTP method.

    Camel version 2.19.0 in http4 component with deleteWithBody option. We could just add it to the URL and use the http method as DELETE

提交回复
热议问题