@Override
    public void onFinished(Stream stream) throws IOException {
        ByteBuffer byteBuffer = stream.toBuffer();
        if (stream instanceof HttpRequestHeaderPart) {
            HttpRequestHeaderPart header = (HttpRequestHeaderPart) stream;
            HttpSession session = mChain.request().session();
            session.method = header.method();
            session.protocol = header.protocol();
            session.path = header.path();
            session.requestHeaders = new LinkedHashMap<>(header.headers());
            session.reqBodyOffset = byteBuffer.remaining();
        }
        mChain.process(byteBuffer);
    }
Constructs a {@link InjectorCallback} for HTTP request.

@param chain A {@link HttpInterceptor} chain.
netbare-injector/src/main/java/com/github/megatronking/netbare/http/HttpRequestInjectorCallback.java