code: public RequestBuilder request(String method, URL url) {
          try {
              RequestBuilder req = new RequestBuilder();
              req.host = url.getHost();
              req.port = url.getPort() < 0 ? url.getDefaultPort() : url.getPort();
              HttpURI httpURI = new HttpURI(url.toURI());
              if (!StringUtils.hasText(httpURI.getPath().trim())) {
                  httpURI.setPath("/");
              }
              req.request = new MetaData.Request(method, httpURI, HttpVersion.HTTP_1_1, new HttpFields());
              return req;
          } catch (URISyntaxException e) {
              log.error("url exception", e);
              throw new IllegalArgumentException(e);
          }
      }
docs: Create a RequestBuilder with HTTP method and URL.
  
  @param method HTTP method.
  @param url    The request URL.
  @return A new RequestBuilder that helps you to build an HTTP request.