@Override
    protected void intercept(@NonNull final HttpResponseChain chain, @NonNull ByteBuffer buffer,
                             int index) throws IOException {
        if (!chain.response().isHttps()) {
            chain.process(buffer);
        } else if (mEngineFactory == null) {
            // Skip all interceptors
            chain.processFinal(buffer);
            mLog.w("JSK not installed, skip all interceptors!");
        } else {
            // Merge buffers
            decodeResponse(chain, buffer);
        }
    }
An interceptor decodes SSL encrypt packets to plaintext packets.

@author Megatron King
@since 2018-11-15 15:39
netbare-core/src/main/java/com/github/megatronking/netbare/http/HttpSSLCodecInterceptor.java