Re: adding interceptors on per request basis (was Re: Unable to see response encoding even through Content-Encoding header is present)

2014-01-10 Thread Oleg Kalnichevski
On Thu, 2014-01-09 at 13:34 -0800, Gaurav Kumar wrote: In my use case, I need to know on per request basis what was the encoding used by remote server. I was hoping there there was out of the box way to know content-encoding but I am okay with disabling decompression. Thanks for the

Re: adding interceptors on per request basis (was Re: Unable to see response encoding even through Content-Encoding header is present)

2014-01-10 Thread Gaurav Kumar
Beautiful! Thanks a lot. On Fri, Jan 10, 2014 at 2:03 AM, Oleg Kalnichevski ol...@apache.org wrote: On Thu, 2014-01-09 at 13:34 -0800, Gaurav Kumar wrote: In my use case, I need to know on per request basis what was the encoding used by remote server. I was hoping there there was out of

Re: adding interceptors on per request basis (was Re: Unable to see response encoding even through Content-Encoding header is present)

2014-01-09 Thread sebb
On 9 January 2014 09:06, Oleg Kalnichevski ol...@apache.org wrote: On Wed, 2014-01-08 at 18:29 -0800, Gaurav Kumar wrote: Thanks! I am now able to see content-encoding. However, the example I followed showed how to add interceptors on global client instance level - is there a way I can add

Re: adding interceptors on per request basis (was Re: Unable to see response encoding even through Content-Encoding header is present)

2014-01-09 Thread Oleg Kalnichevski
On Thu, 2014-01-09 at 12:10 +, sebb wrote: On 9 January 2014 09:06, Oleg Kalnichevski ol...@apache.org wrote: On Wed, 2014-01-08 at 18:29 -0800, Gaurav Kumar wrote: Thanks! I am now able to see content-encoding. However, the example I followed showed how to add interceptors on global

Re: adding interceptors on per request basis (was Re: Unable to see response encoding even through Content-Encoding header is present)

2014-01-09 Thread sebb
On 9 January 2014 12:22, Oleg Kalnichevski ol...@apache.org wrote: On Thu, 2014-01-09 at 12:10 +, sebb wrote: On 9 January 2014 09:06, Oleg Kalnichevski ol...@apache.org wrote: On Wed, 2014-01-08 at 18:29 -0800, Gaurav Kumar wrote: Thanks! I am now able to see content-encoding. However,

Re: adding interceptors on per request basis (was Re: Unable to see response encoding even through Content-Encoding header is present)

2014-01-09 Thread Gaurav Kumar
In my use case, I need to know on per request basis what was the encoding used by remote server. I was hoping there there was out of the box way to know content-encoding but I am okay with disabling decompression. Thanks for the suggestion. On Thu, Jan 9, 2014 at 1:06 AM, Oleg Kalnichevski