RFR: 8368695: Support 101 switching protocol in jdk.httpserver [v3]

Daniel Fuchs dfuchs at openjdk.org
Tue Oct 14 15:08:05 UTC 2025


On Tue, 14 Oct 2025 13:33:45 GMT, Josiah Noel <duke at openjdk.org> wrote:

> Requiring a manual call of sendResponseHeaders(101, 0) and the requirement to custom implement the entire protocol appears pretty opt in to me.

Right. But your PR changes the request body input stream preemptively, before `sendResponseHeaders(101, 0)` is called.
Which let me think that `sendResponseHeaders` is not the right API for doing this.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27751#issuecomment-3402323003


More information about the net-dev mailing list