How are the HTTP/1, H2 and H3 protocols switched? #7
Replies: 1 comment 2 replies
-
(I've converted this into a discussion thread.) The browser is the one that chooses if it uses HTTP/1 or H2. H3 is a special case and the browser must first contact the server, from which it obtains a special header indicating where the H3 endpoint is. Getting back to H2, it works only over TLS, and the server states in the ALPN TLS extension that it supports All the Go server-side code related to this is inside the https://github.com/volution/kawipiko/blob/development/sources/cmd/server/server.go#L1703-L1932 |
Beta Was this translation helpful? Give feedback.
-
can u show the code part where http1.1 or http2 or http3 is switched by browser detection ... or how is it done?
i cant seem to find that part. it's fantastic work by the way.
Beta Was this translation helpful? Give feedback.
All reactions