@Override
    public void onResponse(HttpResponse response, ByteBuffer buffer) throws IOException {
        mRequestCodec.encode(buffer, new SSLCodec.CodecCallback() {
            @Override
            public void onPending(ByteBuffer buffer) {
            }

            @Override
            public void onProcess(ByteBuffer buffer) {
            }

            @Override
            public void onEncrypt(ByteBuffer buffer) throws IOException {
                // The encrypt response data is sent to proxy server
                mResponse.process(buffer);
            }

            @Override
            public void onDecrypt(ByteBuffer 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