Add http3 module: HTTP/3 in the Java HTTP Client (JEP 517), opt-in, discovery modes, fallback timings, proxy downgrade and a packet-loss comparison

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KqJyCidz3ZgRyHABv2GVJh
This commit is contained in:
2026-09-30 20:27:46 +00:00
co-authored by Claude Sonnet 5.5
parent c8ff3acf09
commit fadfd05670
25 changed files with 617 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
$ java src/Basics.java https://localhost:4433/hello (OpenJDK Runtime Environment Temurin-25.0.4.1+1 (build 25.0.4.1+1-LTS))
request 1: HTTP_2 200 alt-svc=h3=":4433"; ma=3600
request 2: HTTP_2 200 alt-svc=h3=":4433"; ma=3600
request 3: HTTP_2 200 alt-svc=h3=":4433"; ma=3600
$ java src/Basics.java https://localhost:4433/hello (OpenJDK Runtime Environment Temurin-26.0.2.1+1 (build 26.0.2.1+1))
request 1: HTTP_2 200 alt-svc=h3=":4433"; ma=3600
request 2: HTTP_2 200 alt-svc=h3=":4433"; ma=3600
request 3: HTTP_2 200 alt-svc=h3=":4433"; ma=3600
# the alt-svc value above is the server advertising h3 on UDP 4433; nobody asked the client to use it.