Zheng Feng created CAMEL-21884:
----------------------------------

             Summary: Introduce the useBodyHandler option in camel-platform-http
                 Key: CAMEL-21884
                 URL: https://issues.apache.org/jira/browse/CAMEL-21884
             Project: Camel
          Issue Type: Improvement
          Components: camel-platform-http
            Reporter: Zheng Feng
            Assignee: Zheng Feng


It could be helpful to introduce the *useBodyHandler* with the default value is 
true. In the API gateway secenrioes, it could forward the requests to the 
vert-http producer directly.

 
{code:java}
from("platform-http:/camel?matchOnUriPrefix=true&useBodyHandler=false")
    .process(exchange -> {
        HttpMessage message = exchange.getMessage(HttpMessage.class);
        message.setBody(message.getRequest());
    })
    .toD("vertx-http://http:${newUri}";);
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to