title: Apache Camel REST DSL sending some data along with each response
body: <p>I am new to Camel and want to implement the following scenario:</p>
  
  <p>I am developing REST services using camel REST-DSL and with each response, I have to send some data(an integer count representing the number of new notifications).</p>
  
  <p>Following is the code how I am using REST DSL:</p>
  
  <pre><code>        rest("/rest1").description("Rest1 service")                           
          .consumes("application/json").produces("application/json")
  
          .post("/addMultiple").typeList(Map.class).to("bean:somebean1?method=someMethod1(${body})")
          .post("/add").to("bean:somebean1?method=someMethod2(${body})")
  
          .get("/status").description("Find all request by status").outTypeList(Request.class)
          .to("bean:somebean1?method=someMethod3(${header.status})") ; 
  
           rest("/rest2").description("Rest2 service")
              .consumes("application/json").produces("application/json")
  
              .post("/add").type(FileBean.class).to("bean:someBean2?method=someMethod1(${body})")
  
              .get("/categories")
              .description("get all categories")
              .to("bean:someBean2?method=someMethod2()");
  </code></pre>
  
  <p>Here with each JSON response I am sending, I have to send some integer count for continuous update at client side.</p>
  
  <p>What if I can have header and with each response I update it by setting new value.</p>
  
  <p>Please advise on how to achieve this.  </p>