rest-assured/src/main/java/io/restassured/internal/http/ContentEncodingRegistry.java
void setInterceptors(final AbstractHttpClient client, Object... encodings) {
        // remove any encoding interceptors that are already set
        client.removeRequestInterceptorByClass(ContentEncoding.RequestInterceptor.class);
        client.removeResponseInterceptorByClass(ContentEncoding.ResponseInterceptor.class);

        for (Object encName : encodings) {
            ContentEncoding enc = availableEncoders.get(encName.toString());
            if (enc == null) continue;
            client.addRequestInterceptor(enc.getRequestInterceptor());
            client.addResponseInterceptor(enc.getResponseInterceptor());
        }
    }
void setInterceptors(final AbstractHttpClient client, Object... encodings) {
        // remove any encoding interceptors that are already set
        client.removeRequestInterceptorByClass(ContentEncoding.RequestInterceptor.class);
        client.removeResponseInterceptorByClass(ContentEncoding.ResponseInterceptor.class);

        for (Object encName : encodings) {
            ContentEncoding enc = availableEncoders.get(encName.toString());
            if (enc == null) continue;
            client.addRequestInterceptor(enc.getRequestInterceptor());
            client.addResponseInterceptor(enc.getResponseInterceptor());
        }
    }
void setInterceptors ( final AbstractHttpClient client , Object ... encodings ) { // remove any encoding interceptors that are already set client . removeRequestInterceptorByClass ( ContentEncoding . RequestInterceptor . class ) ; client . removeResponseInterceptorByClass ( ContentEncoding . ResponseInterceptor . class ) ; for ( Object encName : encodings ) { ContentEncoding enc = availableEncoders . get ( encName . toString ( ) ) ; if ( enc == null ) continue ; client . addRequestInterceptor ( enc . getRequestInterceptor ( ) ) ; client . addResponseInterceptor ( enc . getResponseInterceptor ( ) ) ; } }
Add the request and response interceptors to the {@link HttpClient},
which will provide transparent decoding of the given content-encoding
types.  This method is called by HTTPBuilder and probably should not need
be modified by sub-classes.

@param client    client on which to set the request and response interceptors
@param encodings encoding name (either a {@link ContentEncoding.Type} or
a <code>content-encoding</code> string.
Add the request and response interceptors to the { @link HttpClient } which will provide transparent decoding of the given content - encoding types . This method is called by HTTPBuilder and probably should not need be modified by sub - classes .