On Tue, 2014-01-14 at 14:27 +0000, Boxer, Aaron wrote: > On Mon, 2014-01-13 at 20:31 +0000, Boxer, Aaron wrote: > > Is there a way of removing an interceptor added with addInterceptorFirst ? > > > > Remove from where? > > From the client after it is built by the builder ? I am porting old > code where I used to Be able to do this: > > > > this.client.removeRequestInterceptorByClass(RequestAcceptEncoding.class); > > this.client.removeResponseInterceptorByClass(ResponseContentEncoding.c > lass); > > Thanks, > Aaron >
As of version 4.3 HttpClient stances are immutable. One cannot remove protocol interceptors from or add to the protocol pipeline of an existing HttpClient. Good to know. Thanks! This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this e-mail may not be that of the organization.
