code: protected <T extends HttpRequestBase> T createHttpRequest(Q request) {
      T httpRequest = createHttpRequestBase(request);
  
      applyHeaders(httpRequest, request.getHeaders());
  
      applyPayload(httpRequest, request);
  
      return httpRequest;
    }
docs: creates a apache Http* representation of the request.
  
  @param request the given request
  @return {@link HttpRequestBase} an apache representation of the request