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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 18
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b24

      Description

      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())`;

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: