@Override
    public void process(HttpRequest httpRequest, HttpContext httpContext)
        throws HttpException, IOException {
      super.process(httpRequest, httpContext);

      String currHeaders = "";

      for (org.apache.http.Header h : httpRequest.getAllHeaders()) {
        currHeaders += h.getName() + ":" + h.getValue() + " ";
      }
      requestHeaders.add(currHeaders);

      Header[] headers = httpRequest.getHeaders("Cookie");
      for (Header h : headers) {
        cookieHeader = (cookieHeader == null ? "" : cookieHeader) + h.getName() + ":" + h.getValue();
      }
    }
HttpBasicAuthInterceptorWithLogging
 This adds httpRequestHeaders to the BasicAuthInterceptor
itests/hive-unit/src/test/java/org/apache/hive/service/cli/thrift/TestThriftHttpCLIServiceFeatures.java