code: public HttpRequest buildHeadRequest(GenericUrl url) throws IOException {
      return buildRequest(HttpMethods.HEAD, url, null);
    }
docs: Builds a {@code HEAD} request for the given URL.
  
  @param url HTTP request URL or {@code null} for none
  @return new HTTP request