in reactive-streams/src/main/java/org/apache/camel/example/reactive/streams/RestExample.java [65:78]
public void configure() throws Exception {
// The full path should be eg.: http://localhost:8080/camel/sum/23/31
rest().get("/sum/{num1}/{num2}")
.produces("text/plain")
.to("direct:sum");
from("direct:sum")
.setHeader("num1").simple("${headerAs(num1,Long)}")
.setHeader("num2").simple("${headerAs(num2,Long)}")
.bean("calculator", "sum")
.process(new UnwrapStreamProcessor())
.setBody().simple("The result is: ${body}");
}