So you just need to check the statuses code and don’t need to read the message 
body.
Yeah, we can add an option for it to avoid recopying the input stream from the 
HttpClient.

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On May 19, 2015 at 11:31:33 PM, Marco Crivellaro (marco.cr...@gmail.com) wrote:
> I am using camel-http to send HTTP Post notifications to a wide range of
> endpoints which I don't control directly, sometimes the endpoints response
> is quite big and due to the fact HttpProducer is caching the response stream
> temporary files are being written to disk.
>  
> I can set the caching threshold to a higher value and therefore avoid
> writing to disk but this would have an impact on HEAP consumption.
> It would be great if the response body can optionally be ignored (maybe only
> for 200:300 statuses), I am not doing anything with the endpoint response
> body if the status is 200.
>  
> Maybe such option will be helpful for other camel riders?
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/HttpProducer-to-ignore-response-body-avoiding-stream-caching-tp5767260.html
>   
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  

Reply via email to