Add BodyHandler<Publisher<List<ByteBuffer>>>

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 11
    • Affects Version/s: 11
    • Component/s: core-libs

      This issue has been filed to capture an accepted proposal that arose during JEP review on
      http://mail.openjdk.java.net/pipermail/net-dev/2018-April/011314.html

      ---

      The one area that I do see some room for improvement is the possibility of providing a Publishing handler out of the box, so one does not need to reach beyond Java SE for such echo use-cases. Daniel already has this code in the repository as a test [1], so it would not take much work to provide an API similar to:

      BodyHandlers {
      ..
      public static BodyHandler<Publisher<List<ByteBuffer>>> ofPublisher() {...}
      ..
      }

      [1] http://hg.openjdk.java.net/jdk/sandbox/file/c59f684f1eda/test/jdk/java/net/httpclient/ResponsePublisher.java

            Assignee:
            Daniel Fuchs
            Reporter:
            Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: