Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8276559

(httpclient) Consider adding an HttpRequest.Builder.HEAD method to build a HEAD request.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • None
    • core-libs
    • b24

      HttpRequest.Builder has GET, PUT, POST, DELETE, not sure why we didn't include HEAD.
      In the meantime, to build a HEAD request simply use `HttpRequest.Builder.method("HEAD", BodyPublishers.noBody())`;

            jpai Jaikiran Pai
            dfuchs Daniel Fuchs
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: