HTTP/3 in the Java HTTP Client (JEP 517): Migrating from HttpClient 11
JEP 517 added HTTP/3 to java.net.http in Java 26 as an opt-in. What the opt-in looks like, how the three H3_DISCOVERY modes behave, what fallback costs in seconds, why proxies silently downgrade you, and how HTTP/1.1, HTTP/2 and HTTP/3 compare under simulated packet loss, all measured on a local server with captured transcripts.