code: public HttpExecutor getHttpExecutor(BodyType bodyType, CloseableHttpClient httpClient) {
      HttpExecutor executor;
      switch (bodyType) {
        case FORM_DATA:
          executor = new FormDataHttpExecutor();
          break;
        case APPLICATION_JSON:
          executor = new JsonHttpExecutor();
          break;
        case X_WWW_FORM_URLENCODED:
          executor = new UrlEncodedHttpExecutor();
          break;
        default:
          throw new HttpClientException("暂不支持的请求类型:" + bodyType);
      }
      executor.setHttpClient(Objects.requireNonNull(httpClient));
      return executor;
    }
docs: 获取http executor
  
  @since 1.4.8