https://bugs.openjdk.org/browse/JDK-8294196

Julian Reschke julian.reschke at gmx.de
Thu Jan 9 14:30:09 UTC 2025


Hi there.

I'd like to get back to the topic

"Investigate introducing an API on the HttpClient which allows
applications to get access to "interim" HTTP responses" --
https://bugs.openjdk.org/browse/JDK-8294196

To avoid confusion: the *bugs* with respect to handling 1xx responses
have been thankfully fixed (see
https://github.com/openjdk/jdk/pull/10229 and
https://github.com/openjdk/jdk/pull/10169).

What's still missing is a way to actually inspect the contents of the
1xx messages while waiting for a final response (status >= 200). That
could be a callback that provides the status code and the response
header fiels when 1xx messages are received.

This would be useful when processing 103 messages (Early Hints - RFC
8297) or 104 messages (Upload Resumption Supported - used for
"draft-ietf-httpbis-resumable-upload").

Use cases are summarized over here:

  https://github.com/greenbytes/java-http-1xx-tests

(tests live here as well).

Let me know if more information is needed.

Best regards, Julian


More information about the net-dev mailing list