httpservices/src/main/java/ucar/httpservices/HTTPSession.java
static protected void
    setInterceptors(HttpClientBuilder cb)
    {
        for(HttpRequestInterceptor hrq : reqintercepts) {
            cb.addInterceptorLast(hrq);
        }
        for(HttpResponseInterceptor hrs : rspintercepts) {
            cb.addInterceptorLast(hrs);
        }
        // Add debug interceptors
        for(HttpRequestInterceptor hrq : dbgreq) {
            cb.addInterceptorFirst(hrq);
        }
        for(HttpResponseInterceptor hrs : dbgrsp) {
            cb.addInterceptorFirst(hrs);
        }
        // Hack: add Content-Encoding suppressor
        cb.addInterceptorFirst(CEKILL);
    }
static protected void
    setInterceptors(HttpClientBuilder cb)
    {
        for(HttpRequestInterceptor hrq : reqintercepts) {
            cb.addInterceptorLast(hrq);
        }
        for(HttpResponseInterceptor hrs : rspintercepts) {
            cb.addInterceptorLast(hrs);
        }
        // Add debug interceptors
        for(HttpRequestInterceptor hrq : dbgreq) {
            cb.addInterceptorFirst(hrq);
        }
        for(HttpResponseInterceptor hrs : dbgrsp) {
            cb.addInterceptorFirst(hrs);
        }
        // Hack: add Content-Encoding suppressor
        cb.addInterceptorFirst(CEKILL);
    }
static protected void setInterceptors ( HttpClientBuilder cb ) { for ( HttpRequestInterceptor hrq : reqintercepts ) { cb . addInterceptorLast ( hrq ) ; } for ( HttpResponseInterceptor hrs : rspintercepts ) { cb . addInterceptorLast ( hrs ) ; } // Add debug interceptors for ( HttpRequestInterceptor hrq : dbgreq ) { cb . addInterceptorFirst ( hrq ) ; } for ( HttpResponseInterceptor hrs : dbgrsp ) { cb . addInterceptorFirst ( hrs ) ; } // Hack: add Content-Encoding suppressor cb . addInterceptorFirst ( CEKILL ) ; }
Interceptors: Only supported at global level
Interceptors : Only supported at global level